|
@@ -36,6 +36,8 @@ import 'package:table_calendar/table_calendar.dart'; |
|
@@ -36,6 +36,8 @@ import 'package:table_calendar/table_calendar.dart'; |
|
36
|
import 'package:one_key/models/table.dart' as t;
|
36
|
import 'package:one_key/models/table.dart' as t;
|
|
37
|
import 'package:url_launcher/url_launcher.dart';
|
37
|
import 'package:url_launcher/url_launcher.dart';
|
|
38
|
|
38
|
|
|
|
|
39
|
+import '../models/theme_color_model.dart';
|
|
|
|
40
|
+
|
|
39
|
typedef CustomCallBack = void Function(Object object);
|
41
|
typedef CustomCallBack = void Function(Object object);
|
|
40
|
typedef CustomCallBackMap = void Function(Map<String, String> object);
|
42
|
typedef CustomCallBackMap = void Function(Map<String, String> object);
|
|
41
|
|
43
|
|
|
@@ -4641,7 +4643,7 @@ class DialogUtil { |
|
@@ -4641,7 +4643,7 @@ class DialogUtil { |
|
4641
|
}
|
4643
|
}
|
|
4642
|
|
4644
|
|
|
4643
|
//主题颜色选择弹框
|
4645
|
//主题颜色选择弹框
|
|
4644
|
- static showThemeColorSelectDialog(BuildContext context,
|
4646
|
+ static showThemeColorSelectDialog(BuildContext context, List<ThemeColorModel> themeColorData,
|
|
4645
|
{CustomCallBack callback}) {
|
4647
|
{CustomCallBack callback}) {
|
|
4646
|
return showModalBottomSheet(
|
4648
|
return showModalBottomSheet(
|
|
4647
|
context: context,
|
4649
|
context: context,
|
|
@@ -4669,13 +4671,13 @@ class DialogUtil { |
|
@@ -4669,13 +4671,13 @@ class DialogUtil { |
|
4669
|
child: Container(
|
4671
|
child: Container(
|
|
4670
|
width: double.infinity,
|
4672
|
width: double.infinity,
|
|
4671
|
height: w(106),
|
4673
|
height: w(106),
|
|
4672
|
- color: MyColours.color_0C0F0E,
|
4674
|
+ color:themeColorData[0].color,
|
|
4673
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
4675
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
|
4674
|
padding: EdgeInsets.only(left: w(10), top: w(13)),
|
4676
|
padding: EdgeInsets.only(left: w(10), top: w(13)),
|
|
4675
|
child: Container(
|
4677
|
child: Container(
|
|
4676
|
width: w(61),
|
4678
|
width: w(61),
|
|
4677
|
height: w(27),
|
4679
|
height: w(27),
|
|
4678
|
- child: Text('睿智黑',
|
4680
|
+ child: Text(themeColorData[0].name,
|
|
4679
|
style: TextStyle(
|
4681
|
style: TextStyle(
|
|
4680
|
color: MyColours.color_ffffff,
|
4682
|
color: MyColours.color_ffffff,
|
|
4681
|
fontWeight: FontWeight.bold,
|
4683
|
fontWeight: FontWeight.bold,
|
|
@@ -4687,7 +4689,7 @@ class DialogUtil { |
|
@@ -4687,7 +4689,7 @@ class DialogUtil { |
|
4687
|
callback(1);
|
4689
|
callback(1);
|
|
4688
|
},
|
4690
|
},
|
|
4689
|
child: Container(
|
4691
|
child: Container(
|
|
4690
|
- color: MyColours.color_0143A3,
|
4692
|
+ color: themeColorData[1].color,
|
|
4691
|
width: double.infinity,
|
4693
|
width: double.infinity,
|
|
4692
|
height: w(106),
|
4694
|
height: w(106),
|
|
4693
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
4695
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
|
@@ -4695,7 +4697,7 @@ class DialogUtil { |
|
@@ -4695,7 +4697,7 @@ class DialogUtil { |
|
4695
|
child: Container(
|
4697
|
child: Container(
|
|
4696
|
width: w(61),
|
4698
|
width: w(61),
|
|
4697
|
height: w(27),
|
4699
|
height: w(27),
|
|
4698
|
- child: Text('孔雀蓝',
|
4700
|
+ child: Text(themeColorData[1].name,
|
|
4699
|
style: TextStyle(
|
4701
|
style: TextStyle(
|
|
4700
|
color: MyColours.color_ffffff,
|
4702
|
color: MyColours.color_ffffff,
|
|
4701
|
fontWeight: FontWeight.bold,
|
4703
|
fontWeight: FontWeight.bold,
|
|
@@ -4707,7 +4709,7 @@ class DialogUtil { |
|
@@ -4707,7 +4709,7 @@ class DialogUtil { |
|
4707
|
callback(2);
|
4709
|
callback(2);
|
|
4708
|
},
|
4710
|
},
|
|
4709
|
child: Container(
|
4711
|
child: Container(
|
|
4710
|
- color: MyColours.color_438E93,
|
4712
|
+ color: themeColorData[2].color,
|
|
4711
|
width: double.infinity,
|
4713
|
width: double.infinity,
|
|
4712
|
height: w(106),
|
4714
|
height: w(106),
|
|
4713
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
4715
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
|
@@ -4715,7 +4717,7 @@ class DialogUtil { |
|
@@ -4715,7 +4717,7 @@ class DialogUtil { |
|
4715
|
child: Container(
|
4717
|
child: Container(
|
|
4716
|
width: w(61),
|
4718
|
width: w(61),
|
|
4717
|
height: w(27),
|
4719
|
height: w(27),
|
|
4718
|
- child: Text('群青绿',
|
4720
|
+ child: Text(themeColorData[2].name,
|
|
4719
|
style: TextStyle(
|
4721
|
style: TextStyle(
|
|
4720
|
color: MyColours.color_ffffff,
|
4722
|
color: MyColours.color_ffffff,
|
|
4721
|
fontWeight: FontWeight.bold,
|
4723
|
fontWeight: FontWeight.bold,
|