diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..a3be6b8 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1 @@ +include: package:flutter_lints/flutter.yaml \ No newline at end of file diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist index 6b4c0f7..4f8d4d2 100644 --- a/example/ios/Flutter/AppFrameworkInfo.plist +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 8.0 + 11.0 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 334967d..2627b71 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 50; objects = { /* Begin PBXBuildFile section */ @@ -135,7 +135,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1020; + LastUpgradeCheck = 1300; ORGANIZATIONNAME = "The Chromium Authors"; TargetAttributes = { 97C146ED1CF9000F007C117D = { @@ -281,7 +281,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -364,7 +364,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -413,7 +413,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index a28140c..3db53b6 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ UIViewControllerBasedStatusBarAppearance + CADisableMinimumFrameDurationOnPhone + diff --git a/lib/src/full_screen_menu.dart b/lib/src/full_screen_menu.dart index c1251c3..0f2ac94 100644 --- a/lib/src/full_screen_menu.dart +++ b/lib/src/full_screen_menu.dart @@ -3,7 +3,7 @@ import 'package:full_screen_menu/src/utils/full_screen_menu_util.dart'; import 'package:full_screen_menu/src/widgets/full_screen_menu_base_widget.dart'; AnimationController? _animationController; -Duration _animationDuration = Duration(milliseconds: 200); +Duration _animationDuration = const Duration(milliseconds: 200); class FullScreenMenu { /// Show created menu. diff --git a/lib/src/widgets/full_screen_menu_base_widget.dart b/lib/src/widgets/full_screen_menu_base_widget.dart index 2561bcc..9020e7b 100644 --- a/lib/src/widgets/full_screen_menu_base_widget.dart +++ b/lib/src/widgets/full_screen_menu_base_widget.dart @@ -28,12 +28,12 @@ class FullScreenMenuBaseWidget extends StatefulWidget { : super(key: key); @override - __TDBaseWidgetState createState() => __TDBaseWidgetState(); + TDBaseWidgetState createState() => TDBaseWidgetState(); } -class __TDBaseWidgetState extends State +class TDBaseWidgetState extends State with SingleTickerProviderStateMixin { - Duration animationDuration = Duration(milliseconds: 200); + Duration animationDuration = const Duration(milliseconds: 200); AnimationController? scaleController; late AnimationController animationController; late Animation scaleAnimation; @@ -50,7 +50,7 @@ class __TDBaseWidgetState extends State Future initAnimations() async { animationController = AnimationController( - duration: Duration(milliseconds: 200), + duration: const Duration(milliseconds: 200), vsync: this, ); widget.animationController(animationController); @@ -114,17 +114,17 @@ class __TDBaseWidgetState extends State Padding( padding: const EdgeInsets.all(30), child: Wrap( - children: widget.items!, spacing: 50, runSpacing: 40, alignment: WrapAlignment.center, + children: widget.items!, ), ), FloatingActionButton( backgroundColor: Colors.white, mini: true, - shape: CircleBorder(side: BorderSide(color: Colors.grey)), - child: Icon(Icons.close, color: Colors.grey), + shape: const CircleBorder(side: BorderSide(color: Colors.grey)), + child: const Icon(Icons.close, color: Colors.grey), onPressed: () async { animationController.reverse(); await Future.delayed(animationDuration); diff --git a/pubspec.yaml b/pubspec.yaml index aff1109..c38515e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - pedantic: ^1.11.1 + flutter_lints: ^2.0.1 flutter: \ No newline at end of file