From 1eb0a6c040c0cdd9e59d71acb8ba654623ffc9e8 Mon Sep 17 00:00:00 2001 From: Pante Date: Tue, 5 Nov 2024 06:13:32 +0000 Subject: [PATCH] Commit from GitHub Actions (Forui Presubmit) --- .../src/widgets/select_group/select_group_controller.dart | 3 ++- forui/lib/src/widgets/select_menu_tile.dart | 4 +++- .../select_menu_tile/select_menu_tile_golden_test.dart | 2 +- .../src/widgets/select_menu_tile/select_menu_tile_test.dart | 6 +++--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/forui/lib/src/widgets/select_group/select_group_controller.dart b/forui/lib/src/widgets/select_group/select_group_controller.dart index 80fc9f896..c328817b0 100644 --- a/forui/lib/src/widgets/select_group/select_group_controller.dart +++ b/forui/lib/src/widgets/select_group/select_group_controller.dart @@ -1,8 +1,9 @@ import 'package:flutter/widgets.dart'; -import 'package:forui/forui.dart'; import 'package:meta/meta.dart'; +import 'package:forui/forui.dart'; + /// A controller for a select group. abstract class FSelectGroupController extends FChangeNotifier { final Set _values; diff --git a/forui/lib/src/widgets/select_menu_tile.dart b/forui/lib/src/widgets/select_menu_tile.dart index e1e3d852b..0f120a81f 100644 --- a/forui/lib/src/widgets/select_menu_tile.dart +++ b/forui/lib/src/widgets/select_menu_tile.dart @@ -2,9 +2,11 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; + +import 'package:meta/meta.dart'; + import 'package:forui/forui.dart'; import 'package:forui/src/widgets/select_group/select_group_controller.dart'; -import 'package:meta/meta.dart'; /// A tile that, when triggered, displays a list of options for the user to pick from. /// diff --git a/forui/test/src/widgets/select_menu_tile/select_menu_tile_golden_test.dart b/forui/test/src/widgets/select_menu_tile/select_menu_tile_golden_test.dart index 4e16ae65b..a3e040590 100644 --- a/forui/test/src/widgets/select_menu_tile/select_menu_tile_golden_test.dart +++ b/forui/test/src/widgets/select_menu_tile/select_menu_tile_golden_test.dart @@ -145,7 +145,7 @@ void main() { await tester.pumpWidget( TestScaffold.app( theme: theme.data, - child: FSelectMenuTile( + child: FSelectMenuTile( groupController: controller, prefixIcon: FIcon(FAssets.icons.calendar), label: const Text('Label'), diff --git a/forui/test/src/widgets/select_menu_tile/select_menu_tile_test.dart b/forui/test/src/widgets/select_menu_tile/select_menu_tile_test.dart index 2d1c2c11d..7c3f37a3b 100644 --- a/forui/test/src/widgets/select_menu_tile/select_menu_tile_test.dart +++ b/forui/test/src/widgets/select_menu_tile/select_menu_tile_test.dart @@ -14,7 +14,7 @@ void main() { testWidgets('tap on tile opens menu', (tester) async { await tester.pumpWidget( TestScaffold.app( - child: FSelectMenuTile( + child: FSelectMenuTile( groupController: controller, prefixIcon: FIcon(FAssets.icons.calendar), label: const Text('Label'), @@ -43,7 +43,7 @@ void main() { testWidgets('selecting item in menu does not close it', (tester) async { await tester.pumpWidget( TestScaffold.app( - child: FSelectMenuTile( + child: FSelectMenuTile( groupController: controller, prefixIcon: FIcon(FAssets.icons.calendar), label: const Text('Label'), @@ -74,7 +74,7 @@ void main() { testWidgets('selecting item in menu closes it', (tester) async { await tester.pumpWidget( TestScaffold.app( - child: FSelectMenuTile( + child: FSelectMenuTile( autoHide: true, groupController: controller, prefixIcon: FIcon(FAssets.icons.calendar),