Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
toly1994328 committed Aug 22, 2023
1 parent dcbadce commit 13d5842
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = XQPP7CHG9D;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = XQPP7CHG9D;
ENABLE_BITCODE = NO;
Expand All @@ -372,7 +372,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.9.1;
MARKETING_VERSION = 2.9.2;
PRODUCT_BUNDLE_IDENTIFIER = "com.toly1994.flutter-unit";
PRODUCT_NAME = "$(TARGET_NAME)";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = flutter_unit_profile;
Expand Down Expand Up @@ -498,7 +498,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = XQPP7CHG9D;
ENABLE_BITCODE = NO;
Expand All @@ -513,7 +513,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.9.1;
MARKETING_VERSION = 2.9.2;
PRODUCT_BUNDLE_IDENTIFIER = "com.toly1994.flutter-unit";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -534,7 +534,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = XQPP7CHG9D;
ENABLE_BITCODE = NO;
Expand All @@ -549,7 +549,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.9.1;
MARKETING_VERSION = 2.9.2;
PRODUCT_BUNDLE_IDENTIFIER = "com.toly1994.flutter-unit";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
1 change: 1 addition & 0 deletions lib/app/flutter_unit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class FlutterUnit extends StatelessWidget {
return DefaultTextStyle(
style: TextStyle(fontFamily: state.fontFamily),
child: MaterialApp(
// routes: ,
showPerformanceOverlay: state.showPerformanceOverlay,
title: StrUnit.appName,
debugShowCheckedModeBanner: false,
Expand Down
41 changes: 41 additions & 0 deletions lib/app/navigation/route/route.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import 'dart:io';

import 'package:app/app.dart';
import 'package:flutter/material.dart';

import '../../views/setting/code_style_setting.dart';
import '../../views/setting/font_setting.dart';
import '../../views/setting/setting_page.dart';
import '../../views/setting/theme_color_setting.dart';
import '../unit_navigation.dart';

class RoutePath {

static const String nav = 'nav';

static const String themeColorSetting = 'ThemeColorSettingPage';
static const String codeStyleSetting = 'CodeStyleSettingPage';
static const String itemStyleSetting = 'ItemStyleSettingPage';
static const String fontSetting = 'FountSettingPage';

Map<String, WidgetBuilder> get routes =>
{
themeColorSetting: (ctx) => const ThemeColorSettingPage(),
codeStyleSetting: (ctx) => const CodeStyleSettingPage(),
fontSetting: (ctx) => const FontSettingPage(),
};


static Route<dynamic>? generateRoute(RouteSettings settings) {
switch (settings.name) {
case nav:
if (Platform.isWindows || Platform.isMacOS || Platform.isLinux) {
return ZeroPageRoute(child: UnitNavigation());
}
return SlidePageRoute(child: UnitNavigation());
}

return null;
}

}
3 changes: 1 addition & 2 deletions lib/app/router/unit_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ class UnitRouters {
);
}

return SlidePageRoute(
child: child);
return SlidePageRoute(child: child);

// case search:
// return Right2LeftRouter(child: const SearchPageProvider());
Expand Down

0 comments on commit 13d5842

Please sign in to comment.