From 97e0c5f4c5f6b16ff49ed3a29889a436873a7ec1 Mon Sep 17 00:00:00 2001 From: Pante Date: Tue, 23 Jul 2024 10:06:22 +0000 Subject: [PATCH] Commit from GitHub Actions (Forui Presubmit) --- forui/lib/src/widgets/calendar/calendar.dart | 2 +- forui/lib/src/widgets/checkbox.dart | 3 ++- forui/lib/src/widgets/resizable/resizable.dart | 6 ++++-- forui/lib/src/widgets/resizable/resizable_controller.dart | 4 +++- forui/lib/src/widgets/resizable/resizable_region.dart | 4 +++- forui/lib/src/widgets/resizable/resizable_region_data.dart | 4 +++- forui/lib/src/widgets/resizable/slider.dart | 4 +++- forui/lib/src/widgets/tabs/tabs.dart | 2 +- .../src/widgets/resizable/resizable_controller_test.dart | 2 ++ forui/test/src/widgets/resizable/resizable_data_test.dart | 2 ++ .../test/src/widgets/resizable/resizable_region_test.dart | 2 ++ forui/test/src/widgets/resizable/resizable_test.dart | 2 ++ forui/test/src/widgets/resizable/slider_test.dart | 7 ++++--- 13 files changed, 32 insertions(+), 12 deletions(-) diff --git a/forui/lib/src/widgets/calendar/calendar.dart b/forui/lib/src/widgets/calendar/calendar.dart index 88b208e29..80471c381 100644 --- a/forui/lib/src/widgets/calendar/calendar.dart +++ b/forui/lib/src/widgets/calendar/calendar.dart @@ -1,7 +1,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; -import 'package:meta/meta.dart'; +import 'package:meta/meta.dart'; import 'package:sugar/sugar.dart'; import 'package:forui/forui.dart'; diff --git a/forui/lib/src/widgets/checkbox.dart b/forui/lib/src/widgets/checkbox.dart index adf9a7016..864da465a 100644 --- a/forui/lib/src/widgets/checkbox.dart +++ b/forui/lib/src/widgets/checkbox.dart @@ -2,9 +2,10 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; -import 'package:forui/forui.dart'; import 'package:meta/meta.dart'; +import 'package:forui/forui.dart'; + /// A checkbox control that allows the user to toggle between checked and not checked. /// /// A [FCheckbox] is internally a [FormField], therefore it can be used in a form. diff --git a/forui/lib/src/widgets/resizable/resizable.dart b/forui/lib/src/widgets/resizable/resizable.dart index 8604da59f..9ee7b78ed 100644 --- a/forui/lib/src/widgets/resizable/resizable.dart +++ b/forui/lib/src/widgets/resizable/resizable.dart @@ -1,10 +1,12 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; -import 'package:forui/forui.dart'; -import 'package:forui/src/widgets/resizable/resizable_controller.dart'; + import 'package:meta/meta.dart'; import 'package:sugar/sugar.dart'; +import 'package:forui/forui.dart'; +import 'package:forui/src/widgets/resizable/resizable_controller.dart'; + export '/src/widgets/resizable/resizable_region.dart'; export '/src/widgets/resizable/resizable_controller.dart' hide ResizableController, Resize, SelectAndResize; export '/src/widgets/resizable/resizable_region_data.dart' hide UpdatableResizableRegionData; diff --git a/forui/lib/src/widgets/resizable/resizable_controller.dart b/forui/lib/src/widgets/resizable/resizable_controller.dart index c86b7adc1..51a07d844 100644 --- a/forui/lib/src/widgets/resizable/resizable_controller.dart +++ b/forui/lib/src/widgets/resizable/resizable_controller.dart @@ -1,7 +1,9 @@ import 'package:flutter/widgets.dart'; + +import 'package:meta/meta.dart'; + import 'package:forui/forui.dart'; import 'package:forui/src/widgets/resizable/resizable_region_data.dart'; -import 'package:meta/meta.dart'; /// Possible ways for a user to interact with a [FResizable]. sealed class FResizableInteraction { diff --git a/forui/lib/src/widgets/resizable/resizable_region.dart b/forui/lib/src/widgets/resizable/resizable_region.dart index 7c49e8522..8020074cb 100644 --- a/forui/lib/src/widgets/resizable/resizable_region.dart +++ b/forui/lib/src/widgets/resizable/resizable_region.dart @@ -1,9 +1,11 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; + +import 'package:sugar/sugar.dart'; + import 'package:forui/src/widgets/resizable/resizable.dart'; import 'package:forui/src/widgets/resizable/resizable_controller.dart'; import 'package:forui/src/widgets/resizable/slider.dart'; -import 'package:sugar/sugar.dart'; /// A resizable region that can be resized along the parent [FResizable]'s axis. It should always be in a [FResizable]. /// diff --git a/forui/lib/src/widgets/resizable/resizable_region_data.dart b/forui/lib/src/widgets/resizable/resizable_region_data.dart index 4d8697a61..e7af2386f 100644 --- a/forui/lib/src/widgets/resizable/resizable_region_data.dart +++ b/forui/lib/src/widgets/resizable/resizable_region_data.dart @@ -1,8 +1,10 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; -import 'package:forui/forui.dart'; + import 'package:meta/meta.dart'; +import 'package:forui/forui.dart'; + /// A [FResizableRegion]'s data. final class FResizableRegionData with Diagnosticable { /// The resizable region's index. diff --git a/forui/lib/src/widgets/resizable/slider.dart b/forui/lib/src/widgets/resizable/slider.dart index d7891f4aa..33260abc1 100644 --- a/forui/lib/src/widgets/resizable/slider.dart +++ b/forui/lib/src/widgets/resizable/slider.dart @@ -1,8 +1,10 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; -import 'package:forui/src/widgets/resizable/resizable_controller.dart'; + import 'package:meta/meta.dart'; +import 'package:forui/src/widgets/resizable/resizable_controller.dart'; + @internal sealed class Slider extends StatelessWidget { final ResizableController controller; diff --git a/forui/lib/src/widgets/tabs/tabs.dart b/forui/lib/src/widgets/tabs/tabs.dart index d5c9a1a4a..cac0d09ec 100644 --- a/forui/lib/src/widgets/tabs/tabs.dart +++ b/forui/lib/src/widgets/tabs/tabs.dart @@ -2,9 +2,9 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:meta/meta.dart'; import 'package:forui/forui.dart'; -import 'package:meta/meta.dart'; part 'tabs_style.dart'; diff --git a/forui/test/src/widgets/resizable/resizable_controller_test.dart b/forui/test/src/widgets/resizable/resizable_controller_test.dart index b56a7451a..9182b2d63 100644 --- a/forui/test/src/widgets/resizable/resizable_controller_test.dart +++ b/forui/test/src/widgets/resizable/resizable_controller_test.dart @@ -1,5 +1,7 @@ import 'package:flutter/widgets.dart'; + import 'package:flutter_test/flutter_test.dart'; + import 'package:forui/forui.dart'; import 'package:forui/src/widgets/resizable/resizable_controller.dart'; diff --git a/forui/test/src/widgets/resizable/resizable_data_test.dart b/forui/test/src/widgets/resizable/resizable_data_test.dart index cc003173d..0334a0ce2 100644 --- a/forui/test/src/widgets/resizable/resizable_data_test.dart +++ b/forui/test/src/widgets/resizable/resizable_data_test.dart @@ -1,5 +1,7 @@ import 'package:flutter/widgets.dart'; + import 'package:flutter_test/flutter_test.dart'; + import 'package:forui/src/widgets/resizable/resizable_region_data.dart'; void main() { diff --git a/forui/test/src/widgets/resizable/resizable_region_test.dart b/forui/test/src/widgets/resizable/resizable_region_test.dart index 54648cd05..31198108a 100644 --- a/forui/test/src/widgets/resizable/resizable_region_test.dart +++ b/forui/test/src/widgets/resizable/resizable_region_test.dart @@ -1,5 +1,7 @@ import 'package:flutter/widgets.dart'; + import 'package:flutter_test/flutter_test.dart'; + import 'package:forui/forui.dart'; Widget stub(BuildContext context, FResizableRegionData data, Widget? child) => child!; diff --git a/forui/test/src/widgets/resizable/resizable_test.dart b/forui/test/src/widgets/resizable/resizable_test.dart index 8755bd058..171dacbd3 100644 --- a/forui/test/src/widgets/resizable/resizable_test.dart +++ b/forui/test/src/widgets/resizable/resizable_test.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; + import 'package:flutter_test/flutter_test.dart'; + import 'package:forui/forui.dart'; void main() { diff --git a/forui/test/src/widgets/resizable/slider_test.dart b/forui/test/src/widgets/resizable/slider_test.dart index 7b49a3c5b..3cb389114 100644 --- a/forui/test/src/widgets/resizable/slider_test.dart +++ b/forui/test/src/widgets/resizable/slider_test.dart @@ -1,11 +1,12 @@ import 'package:flutter/widgets.dart'; + import 'package:flutter_test/flutter_test.dart'; -import 'package:forui/forui.dart'; -import 'package:forui/src/widgets/resizable/resizable_controller.dart'; -import 'package:forui/src/widgets/resizable/slider.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; +import 'package:forui/forui.dart'; +import 'package:forui/src/widgets/resizable/resizable_controller.dart'; +import 'package:forui/src/widgets/resizable/slider.dart'; import 'slider_test.mocks.dart'; @GenerateNiceMocks([MockSpec()])