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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user