1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 06:48:26 +00:00

Made elements on component screen stay compact on wider screen, take 2 (#1267)

* Revert "Revert "Made elements on component screen stay compact on wider screen (#1258)" (#1266)"

This reverts commit 53c83adc71.

* ran flutter format for the changed files

* fixed test

Co-authored-by: Qun Cheng <quncheng@google.com>
This commit is contained in:
Qun Cheng
2022-05-12 17:28:32 -07:00
committed by GitHub
parent 53c83adc71
commit 52ef797b9a
3 changed files with 46 additions and 35 deletions

View File

@@ -27,6 +27,11 @@ void main() {
expect(find.text("Icon"), findsNWidgets(5));
// FABs
Finder floatingActionButton = find.text("Create");
await tester.scrollUntilVisible(
floatingActionButton,
500.0,
);
expect(
find.widgetWithIcon(FloatingActionButton, Icons.add), findsNWidgets(4));
expect(find.widgetWithText(FloatingActionButton, "Create"), findsOneWidget);