|
...
|
...
|
@@ -36,6 +36,8 @@ import 'package:table_calendar/table_calendar.dart'; |
|
|
|
import 'package:one_key/models/table.dart' as t;
|
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
|
|
|
|
import '../models/theme_color_model.dart';
|
|
|
|
|
|
|
|
typedef CustomCallBack = void Function(Object object);
|
|
|
|
typedef CustomCallBackMap = void Function(Map<String, String> object);
|
|
|
|
|
|
...
|
...
|
@@ -4641,7 +4643,7 @@ class DialogUtil { |
|
|
|
}
|
|
|
|
|
|
|
|
//主题颜色选择弹框
|
|
|
|
static showThemeColorSelectDialog(BuildContext context,
|
|
|
|
static showThemeColorSelectDialog(BuildContext context, List<ThemeColorModel> themeColorData,
|
|
|
|
{CustomCallBack callback}) {
|
|
|
|
return showModalBottomSheet(
|
|
|
|
context: context,
|
|
...
|
...
|
@@ -4669,13 +4671,13 @@ class DialogUtil { |
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: w(106),
|
|
|
|
color: MyColours.color_0C0F0E,
|
|
|
|
color:themeColorData[0].color,
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
|
|
|
padding: EdgeInsets.only(left: w(10), top: w(13)),
|
|
|
|
child: Container(
|
|
|
|
width: w(61),
|
|
|
|
height: w(27),
|
|
|
|
child: Text('睿智黑',
|
|
|
|
child: Text(themeColorData[0].name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
...
|
...
|
@@ -4687,7 +4689,7 @@ class DialogUtil { |
|
|
|
callback(1);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
color: MyColours.color_0143A3,
|
|
|
|
color: themeColorData[1].color,
|
|
|
|
width: double.infinity,
|
|
|
|
height: w(106),
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
|
...
|
...
|
@@ -4695,7 +4697,7 @@ class DialogUtil { |
|
|
|
child: Container(
|
|
|
|
width: w(61),
|
|
|
|
height: w(27),
|
|
|
|
child: Text('孔雀蓝',
|
|
|
|
child: Text(themeColorData[1].name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
...
|
...
|
@@ -4707,7 +4709,7 @@ class DialogUtil { |
|
|
|
callback(2);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
color: themeColorData[2].color,
|
|
|
|
width: double.infinity,
|
|
|
|
height: w(106),
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(30)),
|
|
...
|
...
|
@@ -4715,7 +4717,7 @@ class DialogUtil { |
|
|
|
child: Container(
|
|
|
|
width: w(61),
|
|
|
|
height: w(27),
|
|
|
|
child: Text('群青绿',
|
|
|
|
child: Text(themeColorData[2].name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontWeight: FontWeight.bold,
|
...
|
...
|
|