Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:flutter_lints/flutter.yaml
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>11.0</string>
</dict>
</plist>
10 changes: 5 additions & 5 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -135,7 +135,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "The Chromium Authors";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 2 additions & 0 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion lib/src/full_screen_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 7 additions & 7 deletions lib/src/widgets/full_screen_menu_base_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ class FullScreenMenuBaseWidget extends StatefulWidget {
: super(key: key);

@override
__TDBaseWidgetState createState() => __TDBaseWidgetState();
TDBaseWidgetState createState() => TDBaseWidgetState();
}

class __TDBaseWidgetState extends State<FullScreenMenuBaseWidget>
class TDBaseWidgetState extends State<FullScreenMenuBaseWidget>
with SingleTickerProviderStateMixin {
Duration animationDuration = Duration(milliseconds: 200);
Duration animationDuration = const Duration(milliseconds: 200);
AnimationController? scaleController;
late AnimationController animationController;
late Animation<double> scaleAnimation;
Expand All @@ -50,7 +50,7 @@ class __TDBaseWidgetState extends State<FullScreenMenuBaseWidget>

Future<void> initAnimations() async {
animationController = AnimationController(
duration: Duration(milliseconds: 200),
duration: const Duration(milliseconds: 200),
vsync: this,
);
widget.animationController(animationController);
Expand Down Expand Up @@ -114,17 +114,17 @@ class __TDBaseWidgetState extends State<FullScreenMenuBaseWidget>
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);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
pedantic: ^1.11.1
flutter_lints: ^2.0.1


flutter: