同步ios的功能

This commit is contained in:
jyuesong
2022-05-30 14:02:14 +08:00
parent 578bb926fa
commit bd77beb60a
14 changed files with 412 additions and 548 deletions

View File

@@ -105,7 +105,8 @@ class Routes {
case routeTaskLogDetail:
return CupertinoPageRoute(
builder: (context) => TaskLogDetailPage(
title: settings.arguments as String,
title: (settings.arguments as Map)['title'],
path: (settings.arguments as Map)['path'],
),
);
case routeScriptDetail:

View File

@@ -10,7 +10,7 @@ import 'package:qinglong_app/utils/sp_utils.dart';
var themeProvider = ChangeNotifierProvider((ref) => ThemeViewModel());
const commonColor = Color(0xFF299343);
Color commonColor = const Color(0xFF299343);
Color _primaryColor = commonColor;
class ThemeViewModel extends ChangeNotifier {
@@ -71,7 +71,10 @@ class ThemeViewModel extends ChangeNotifier {
),
scaffoldBackgroundColor: const Color(0xfff5f5f5),
inputDecorationTheme: InputDecorationTheme(
labelStyle: TextStyle(color: _primaryColor),
labelStyle: TextStyle(
color: _primaryColor,
fontSize: 14,
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(
color: _primaryColor,
@@ -152,7 +155,10 @@ class ThemeViewModel extends ChangeNotifier {
),
),
inputDecorationTheme: InputDecorationTheme(
labelStyle: TextStyle(color: _primaryColor),
labelStyle: TextStyle(
color: _primaryColor,
fontSize: 14,
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(
color: _primaryColor,
@@ -208,12 +214,15 @@ class ThemeViewModel extends ChangeNotifier {
abstract class ThemeColors {
Color settingBgColor();
Color settingBordorColor();
Color titleColor();
Color descColor();
Color tabBarColor();
Color pinColor();
Color buttonBgColor();
@@ -256,6 +265,11 @@ class LightThemeColors extends ThemeColors {
Color settingBordorColor() {
return Colors.white;
}
@override
Color tabBarColor() {
return const Color(0xffF7F7F7);
}
}
class DartThemeColors extends ThemeColors {
@@ -293,4 +307,9 @@ class DartThemeColors extends ThemeColors {
Color settingBordorColor() {
return Color(0xff333333);
}
@override
Color tabBarColor() {
return Colors.black;
}
}