Commit a897a84da54668134577bf3bd67dd889c61c8275

Authored by wdn127929
1 parent 708a63b4

调菜OK

... ... @@ -2,6 +2,7 @@ import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/route/navigator_util.dart';
import 'package:one_key/widgets/MyDivider.dart';
import 'package:one_key/widgets/round_button.dart';
import 'package:one_key/widgets/v_empty_view.dart';
... ... @@ -933,23 +934,28 @@ class _FeastCreatePageState extends State<FeastCreatePage> {
fontSize: font(16)),
)),
InkWell(
onTap: () {
NavigatorUtil
.goFeastMenuPage(
context);
},
child: Row(
children: [
Image.asset(
Utils.getImgPath(
'f_tiaocai'),
width: w(20),
),
HEmptyView(8),
Text(
'调菜',
style: TextStyle(
color: MyColours
.color_515151,
fontSize: font(14)),
),
],
)),
children: [
Image.asset(
Utils.getImgPath(
'f_tiaocai'),
width: w(20),
),
HEmptyView(8),
Text(
'调菜',
style: TextStyle(
color: MyColours
.color_515151,
fontSize: font(14)),
),
],
)),
HEmptyView(32),
InkWell(
child: Image.asset(
... ... @@ -1188,6 +1194,9 @@ class _FeastCreatePageState extends State<FeastCreatePage> {
isBold: false,
gradientStart: MyColours.color_438E93,
gradientEnd: MyColours.color_438E93,
onPressed: () {
NavigatorUtil.goFeastDepositPage(context);
},
),
],
)),
... ... @@ -1326,7 +1335,7 @@ class _FeastCreatePageState extends State<FeastCreatePage> {
'担保人',
style: TextStyle(
fontSize: ScreenUtil().setSp(28),
color: MyColours.color_333333),
color: MyColours.color_515151),
),
),
HEmptyView(60),
... ... @@ -1365,7 +1374,7 @@ class _FeastCreatePageState extends State<FeastCreatePage> {
],
),
),
remark(customCdb, customFdb,hintText: '担保说明'),
remark(customCdb, customFdb, hintText: '担保说明'),
Padding(
padding: EdgeInsets.fromLTRB(
ScreenUtil().setWidth(32),
... ...
import 'package:common_utils/common_utils.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_picker/Picker.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/widgets/v_empty_view.dart';
import '../../res/colors.dart';
import '../../utils/dialog_util.dart';
import '../../utils/screen_util.dart';
import '../../utils/utils.dart';
import '../../widgets/h_empty_view.dart';
import '../../widgets/system_app_bar.dart';
class FeastDepositPage extends StatefulWidget {
FeastDepositPage({Key key}) : super(key: key);
@override
_FeastDepositPageState createState() => _FeastDepositPageState();
}
class _FeastDepositPageState extends State<FeastDepositPage> {
String money = '请输入'; //金额
String paymentP = '请输入'; //付款人
String collectionP = '请选择'; //收款人
String paymentTime = '请选择'; //付款时间
String paymentType = '请选择'; //支付方式
String depositType = '请选择'; //定金类型
String receiptNumber = '请输入'; //收据编号
TextEditingController moneyC = TextEditingController();
FocusNode moneyF = FocusNode();
TextEditingController paymentC = TextEditingController();
FocusNode paymentF = FocusNode();
TextEditingController receiptNumberC = TextEditingController();
FocusNode receiptNumberF = FocusNode();
bool showDateSelWidget = false;
final GlobalKey<ScaffoldState> scaffoldKey = GlobalKey<ScaffoldState>();
@override
void initState() {
// TODO: implement initState
super.initState();
Utils.changeStatusColor(color: MyColours.color_438E93);
moneyF.addListener(() {
if (moneyF.hasFocus) {
//有焦点
if (showDateSelWidget) {
Navigator.pop(context);
showDateSelWidget = false;
}
} else {
//失去焦点
// _editingController.text = '';
}
});
paymentF.addListener(() {
if (moneyF.hasFocus) {
//有焦点
if (showDateSelWidget) {
Navigator.pop(context);
showDateSelWidget = false;
}
} else {
//失去焦点
// _editingController.text = '';
}
});
receiptNumberF.addListener(() {
if (moneyF.hasFocus) {
//有焦点
if (showDateSelWidget) {
Navigator.pop(context);
showDateSelWidget = false;
}
} else {
//失去焦点
// _editingController.text = '';
}
});
WidgetsBinding.instance.addPostFrameCallback((_) {});
}
///请输入
///输入框
Widget _textfield(
String title,
String hintText,
TextEditingController editingController,
FocusNode focusNode,
String subTitle,
{TextInputType inputType = TextInputType.number}) {
return Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
// color: Colors.red,
width: ScreenUtil().setWidth(160),
height: ScreenUtil().setWidth(35),
child: Text(
title,
style: TextStyle(
fontSize: ScreenUtil().setSp(28),
color: MyColours.color_515151),
),
),
HEmptyView(60),
Expanded(
child: Container(
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
width: h(1), color: MyColours.color_DBDBDB))),
child: Row(
children: [
Expanded(
child: Container(
// height: ScreenUtil().setHeight(120),
height: ScreenUtil().setWidth(64),
child: TextField(
controller: editingController,
// textAlign: TextAlign.right,
// textAlignVertical: TextAlignVertical.bottom,
maxLines: 1,
inputFormatters: [],
// //光标颜色
// cursorColor:
// widget.isSelect ? Colors.white : MyColours.color_199095,
//输入文本的样式
style: TextStyle(
fontSize: ScreenUtil().setSp(32),
),
focusNode: focusNode,
decoration: InputDecoration(
border:
OutlineInputBorder(borderSide: BorderSide.none),
hintText: hintText,
hintStyle: TextStyle(
color: hintText == '请输入'
? MyColours.color_999999
: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28),
),
contentPadding: EdgeInsets.zero,
),
onChanged: (value) {},
onEditingComplete: () {
FocusScope.of(context)
.requestFocus(FocusNode()); //点击空白处隐藏键盘
},
keyboardType: inputType,
)),
),
Container(
child: Text(
subTitle,
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28)),
),
),
],
),
))
],
),
);
}
///请选择
Widget _selectWidget(String title, String labelShow,
{GestureTapCallback onTap, bool need = true}) {
return InkWell(
onTap: onTap,
// () {
// FocusScope.of(context).requestFocus(FocusNode()); //隐藏键盘
// DialogUtil.showSelectCusmanDialog(
// context,
// customerProvider.labelList.map((item) {
// return item.label;
// }).toList(), (value) {
// if (value != null) {
// setState(() {
// customerProvider.labelSelIndex =
// value.first;
// labelShow = customerProvider
// .labelList[
// customerProvider.labelSelIndex]
// .label;
// });
// }
// },
// selecteds:
// customerProvider.labelSelIndex == null
// ? []
// : [
// customerProvider.labelSelIndex
// ])
// .then((value) {});
// },
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
// color: Colors.red,
width: ScreenUtil().setWidth(160),
height: ScreenUtil().setWidth(35),
child: Text(
title,
style: TextStyle(
fontSize: ScreenUtil().setSp(28),
color: MyColours.color_515151),
),
),
HEmptyView(60),
Expanded(
child: Container(
height: ScreenUtil().setWidth(64),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
width: ScreenUtil().setWidth(2),
color: Color.fromRGBO(220, 220, 220, 1)))),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
labelShow,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: labelShow == '请选择'
? MyColours.color_999999
: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28),
),
)),
HEmptyView(10),
Image.asset(
Utils.getImgPath('f_arrow_down'),
width: ScreenUtil().setWidth(64),
// height: ScreenUtil().setWidth(10),
),
HEmptyView(16),
],
))),
],
),
);
}
Widget _callButton(
{GestureTapCallback onPress,
content,
hasLeftBorder = true,
isSelect = false}) {
return InkWell(
onTap: onPress,
child: Container(
height: h(48),
decoration: BoxDecoration(
color: isSelect ? MyColours.color_438E93 : MyColours.color_ffffff,
border: Border(
bottom: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)),
top: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)),
left: hasLeftBorder
? BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2))
: BorderSide.none,
right: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)))),
child: Align(
alignment: Alignment.center,
child: Text(
content,
style: TextStyle(
color:
isSelect ? MyColours.color_F6F6F6 : MyColours.color_438E93,
fontSize: ScreenUtil().setSp(36)),
),
),
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: MyColours.color_ffffff,
key: scaffoldKey,
appBar: SystemAppBar(
'添加定金',
needWhite: true,
bgColor: MyColours.color_438E93,
titleColor: MyColours.color_F6F6F6,
onTap: () {
Navigator.pop(context);
},
),
body: Column(
children: [
Expanded(
child: SingleChildScrollView(
child: Padding(
padding: EdgeInsets.only(left: w(30), right: w(13)),
child: Column(
children: [
VEmptyView(50),
_textfield('金额', money, moneyC, moneyF, '元'),
VEmptyView(66),
_textfield('付款人', paymentP, paymentC, paymentF, ''),
VEmptyView(66),
_selectWidget('收款人', collectionP),
VEmptyView(66),
_selectWidget('付款时间', paymentTime, onTap: () {
FocusScope.of(context)
.requestFocus(FocusNode()); //点击空白处隐藏键盘
//弹出时间选择器
// showPickerDateTime(context);
showDateSelWidget = true;
DialogUtil.showPickerDateTime24Feast(
context,
scaffoldKey,
(value) {
// {'text': picker.adapter.text, 'select': selecteds}
if (value != null) {
setState(() {
print(value);
paymentTime = DateUtil.formatDateStr(value,
format: DateFormats.y_mo_d);
});
}
showDateSelWidget = false;
},
pickerDateTimeType: PickerDateTimeType.kYMD,
dateTime: DateUtil.getDateTime(paymentTime),
cancelText: '',
title: '选择付款时间',
onCancel: () {
showDateSelWidget = false;
});
}),
VEmptyView(66),
_selectWidget('支付方式', paymentType),
VEmptyView(66),
_selectWidget('定金类型', depositType),
VEmptyView(66),
_textfield('收据编号', receiptNumber, receiptNumberC,
receiptNumberF, ''),
],
)),
)),
Row(
children: [
Expanded(
child: _callButton(
onPress: () {
Navigator.pop(context);
},
content: '返回',
hasLeftBorder: true,
isSelect: false)),
Expanded(
child: _callButton(
onPress: () {},
content: '保存并返回',
hasLeftBorder: true,
isSelect: true))
],
)
],
));
}
}
... ...
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/widgets/MyDivider.dart';
import 'package:one_key/widgets/h_empty_view.dart';
import '../../res/colors.dart';
import '../../utils/screen_util.dart';
import '../../utils/utils.dart';
import '../../widgets/system_app_bar.dart';
import '../../widgets/v_empty_view.dart';
/**
*
* 调菜
*/
class FeastMenuPage extends StatefulWidget {
FeastMenuPage({Key key}) : super(key: key);
@override
_FeastMenuPageState createState() => _FeastMenuPageState();
}
class _FeastMenuPageState extends State<FeastMenuPage> {
ScrollController controller = ScrollController();
@override
void initState() {
// TODO: implement initState
super.initState();
Utils.changeStatusColor(color: MyColours.color_438E93);
}
Widget _callButton(
{GestureTapCallback onPress,
content,
hasLeftBorder = true,
isSelect = false}) {
return InkWell(
onTap: onPress,
child: Container(
height: h(48),
decoration: BoxDecoration(
color: isSelect ? MyColours.color_438E93 : MyColours.color_ffffff,
border: Border(
bottom: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)),
top: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)),
left: hasLeftBorder
? BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2))
: BorderSide.none,
right: BorderSide(
color: MyColours.color_438E93,
width: ScreenUtil().setWidth(2)))),
child: Align(
alignment: Alignment.center,
child: Text(
content,
style: TextStyle(
color:
isSelect ? MyColours.color_F6F6F6 : MyColours.color_438E93,
fontSize: ScreenUtil().setSp(36)),
),
),
),
);
}
// 根据index展示不同的widget
Widget buildItemWidget(BuildContext context, int index) {
return _itemBuildWidget(context, index);
}
///输入框
Widget _textfield(String hintText, TextEditingController editingController,
FocusNode focusNode,
{TextInputType inputType = TextInputType.text, double width}) {
return Container(
width: width,
padding: EdgeInsets.symmetric(horizontal: w(6)),
decoration: BoxDecoration(
border: Border.all(width: h(1), color: MyColours.color_DBDBDB)),
child: Container(
// height: ScreenUtil().setHeight(120),
height: ScreenUtil().setWidth(64),
child: TextField(
controller: editingController,
// textAlign: TextAlign.right,
// textAlignVertical: TextAlignVertical.bottom,
maxLines: 1,
inputFormatters: [],
// //光标颜色
// cursorColor:
// widget.isSelect ? Colors.white : MyColours.color_199095,
//输入文本的样式
style: TextStyle(
fontSize: ScreenUtil().setSp(32),
),
focusNode: focusNode,
decoration: InputDecoration(
border: OutlineInputBorder(borderSide: BorderSide.none),
hintText: hintText,
hintStyle: TextStyle(
color: hintText == '菜名' || hintText == '数量'
? MyColours.color_999999
: MyColours.color_515151,
fontSize: ScreenUtil().setSp(24),
),
contentPadding: EdgeInsets.zero,
),
onChanged: (value) {},
onEditingComplete: () {
FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
},
keyboardType: inputType,
)),
);
}
Widget _itemBuildWidget(BuildContext context, int index) {
return ListView.builder(
shrinkWrap: true,
controller: controller,
padding: EdgeInsets.only(right: w(12)),
itemCount: _getItemListCount(),
itemBuilder: (BuildContext context, int index) {
if (index < 1) {
return _buildHeaderWidget(context, index);
} else {
int itemIndex = index - 1;
return Container(
margin: new EdgeInsets.only(bottom: h(12)),
color: MyColours.color_ffffff,
child: new GestureDetector(
onTap: () {
// _gotoProjectDetail(projectModelList[index]);
},
child: new Container(
color: MyColours.color_ffffff,
child: Row(
children: [
Container(
width: h(90),
child: Text(
'鱼香肉丝',
overflow: TextOverflow.ellipsis,
maxLines: 10,
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(32)),
)),
HEmptyView(16),
Container(
width: h(36),
child: Text(
'10份',
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(32)),
)),
HEmptyView(16),
Text(
'调为',
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: TextStyle(
color: MyColours.color_438E93,
fontSize: ScreenUtil().setSp(32)),
),
HEmptyView(16),
Expanded(child: _textfield('菜名', null, null)),
HEmptyView(16),
_textfield('数量', null, null, width: w(56))
],
)),
),
);
}
},
);
}
// 总count数
int _getItemListCount() {
return 3 + 1;
}
// header内容
Widget _buildHeaderWidget(BuildContext context, int index) {
return Padding(
padding: EdgeInsets.only(bottom: h(12)),
child: Text(
'热菜',
style: TextStyle(
color: MyColours.color_515151,
fontSize: font(16),
fontWeight: FontWeight.bold),
));
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar(
'调菜',
needWhite: true,
bgColor: MyColours.color_438E93,
titleColor: MyColours.color_F6F6F6,
onTap: () {
Navigator.pop(context);
},
),
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: SingleChildScrollView(
controller: controller,
child: Padding(
padding: EdgeInsets.only(left: w(16)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
VEmptyView(64),
Text(
'1299套餐',
style: TextStyle(
color: MyColours.color_E6000000,
fontSize: font(16)),
),
VEmptyView(24),
MyDivider(
double.infinity,
h(1),
color: MyColours.color_E7E7E7,
),
VEmptyView(64),
ListView.builder(
shrinkWrap: true,
controller: controller,
padding: EdgeInsets.only(right: w(12)),
itemCount: 10,
itemBuilder: (BuildContext context, int index) {
return buildItemWidget(context, index);
},
)
],
)),
)),
Row(
children: [
Expanded(
child: _callButton(
onPress: () {
Navigator.pop(context);
},
content: '返回',
hasLeftBorder: true,
isSelect: false)),
Expanded(
child: _callButton(
onPress: () {},
content: '保存并返回',
hasLeftBorder: true,
isSelect: true))
],
)
],
));
}
}
... ...
... ... @@ -291,7 +291,7 @@ class _MenuManagePageState extends State<MenuManagePage> {
fontWeight:
FontWeight.bold),
),
VEmptyView(20),
VEmptyView(10),
Text(
'${model.price}元/${model.unit}',
style: TextStyle(
... ...
... ... @@ -58,6 +58,8 @@ class MyColours {
static const Color color_131313 = Color(0xff131313);
static const Color color_2e000000 = Color(0x2e000000);
static const Color color_14000000 = Color(0x14000000);
static const Color color_40000000 = Color(0x40000000);
static const Color color_1F000000 = Color(0x1F000000);
static const Color color_bfbfbf = Color(0xffBFBFBF);
... ...
... ... @@ -854,4 +854,17 @@ class NavigatorUtil {
return _navigateTo(context, "${Routes.feast_create_page}",
replace: replace);
}
///宴会----添加定金
static Future<dynamic> goFeastDepositPage(BuildContext context,
{replace = false, bool onlyShow = false}) {
return _navigateTo(context, "${Routes.feast_deposit_page}",
replace: replace);
}
///宴会----调菜
static Future<dynamic> goFeastMenuPage(BuildContext context,
{replace = false, bool onlyShow = false}) {
return _navigateTo(context, "${Routes.feast_menu_page}", replace: replace);
}
}
... ...
... ... @@ -143,6 +143,8 @@ import 'package:provider/provider.dart';
import '../pages/feast/feast_board.dart';
import '../pages/feast/feast_create_page.dart';
import '../pages/feast/feast_deposit_page.dart';
import '../pages/feast/feast_menu_page.dart';
import '../provider/feast_model.dart';
// 登录页
... ... @@ -1340,3 +1342,23 @@ var feastCreatePageHandle = new Handler(
return ChangeNotifierProvider<FeastModel>(
create: (_) => FeastModel(), child: FeastCreatePage());
});
///宴会----添加定金
var feastDepositPageHandle = new Handler(
handlerFunc: (BuildContext context, Map<dynamic, List<Object>> params) {
// String uids = params["uids"].first;
// bool onlyShow = FluroConvertUtils.string2bool(params["onlyShow"].first);
return ChangeNotifierProvider<FeastModel>(
create: (_) => FeastModel(), child: FeastDepositPage());
});
///宴会----调菜
var feastMenuPageHandle = new Handler(
handlerFunc: (BuildContext context, Map<dynamic, List<Object>> params) {
// String uids = params["uids"].first;
// bool onlyShow = FluroConvertUtils.string2bool(params["onlyShow"].first);
return ChangeNotifierProvider<FeastModel>(
create: (_) => FeastModel(), child: FeastMenuPage());
});
... ...
... ... @@ -117,6 +117,8 @@ class Routes {
"/coupon_to_personnel_page"; //优惠券----可发放员工
static String feast_board_page = "/feast_board_page"; //宴会----宴会看板
static String feast_create_page = "/feast_create_page"; //宴会----新建宴会
static String feast_deposit_page = "/feast_deposit_page"; //宴会----定金
static String feast_menu_page = "/feast_menu_page"; //宴会----调菜
static void configureRoutes(FluroRouter router) {
router.notFoundHandler = new Handler(
... ... @@ -237,5 +239,8 @@ class Routes {
handler: couponToPersonnelPageHandle);
router.define(feast_board_page, handler: feastBoardPageHandle);
router.define(feast_create_page, handler: feastCreatePageHandle);
router.define(feast_deposit_page, handler: feastDepositPageHandle);
router.define(feast_menu_page, handler: feastMenuPageHandle);
}
}
... ...
... ... @@ -4123,13 +4123,89 @@ class DialogUtil {
}
///年月日时分秒选择器
static Future showPickerDateTime24Feast(BuildContext context,
GlobalKey<ScaffoldState> scaffoldKey, ValueChanged valueChanged,
{int pickerDateTimeType = PickerDateTimeType.kYMDHMS,
List<int> selecteds,
Color cancelTextColor = const Color.fromRGBO(0, 0, 0, 0.6),
String title = '',
VoidCallback onCancel,
String cancelText = '取消',
DateTime dateTime}) {
new Picker(
selecteds: selecteds,
adapter: new DateTimePickerAdapter(
type: pickerDateTimeType,
isNumberMonth: true,
yearSuffix: "年",
monthSuffix: "月",
daySuffix: "日",
minHour: 00,
maxHour: 23,
yearBegin: DateTime.now().year,
yearEnd: 2030,
minValue: DateTime.now(),
value: dateTime),
height: ScreenUtil().setWidth(480),
hideHeader: false,
headerDecoration: BoxDecoration(
color: MyColours.color_ffffff,
border: Border(
bottom: BorderSide(
width: ScreenUtil().setWidth(2),
color: MyColours.color_E7E7E7),
)),
title: Text(
title,
style: TextStyle(
fontWeight: FontWeight.bold,
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(32)),
),
cancelText: cancelText,
cancelTextStyle:
TextStyle(color: cancelTextColor, fontSize: ScreenUtil().setSp(32)),
confirmText: "确定",
itemExtent: ScreenUtil().setWidth(80),
confirmTextStyle: TextStyle(
color: MyColours.color_438E93, fontSize: ScreenUtil().setSp(32)),
selectedTextStyle: TextStyle(
color: MyColours.color_000000, fontSize: ScreenUtil().setSp(32)),
textStyle: TextStyle(
color: Color.fromRGBO(0, 0, 0, 0.26),
fontSize: ScreenUtil().setSp(32)),
selectionOverlay: Container(
height: ScreenUtil().setWidth(80),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
width: ScreenUtil().setWidth(2),
color: MyColours.color_E7E7E7),
top: BorderSide(
width: ScreenUtil().setWidth(2),
color: MyColours.color_E7E7E7))),
),
onCancel: onCancel,
onConfirm: (Picker picker, List<int> selecteds) {
// print(value.toString());
// print(picker.adapter.toString());
if (valueChanged != null) {
valueChanged(picker.adapter.text);
}
}).showModal(context,backgroundColor: MyColours.color_40000000);
}
///年月日时分秒选择器
static Future showPickerDateTime24(BuildContext context,
GlobalKey<ScaffoldState> scaffoldKey, ValueChanged valueChanged,
{List<int> selecteds, VoidCallback onCancel, DateTime dateTime}) {
{int pickerDateTimeType = PickerDateTimeType.kYMDHMS,
List<int> selecteds,
VoidCallback onCancel,
DateTime dateTime}) {
new Picker(
selecteds: selecteds,
adapter: new DateTimePickerAdapter(
type: PickerDateTimeType.kYMDHMS,
type: pickerDateTimeType,
isNumberMonth: true,
yearSuffix: "年",
monthSuffix: "月",
... ...