Commit cd5aaf1a073624fc5a20b42b49eddea1bd0d26c1

Authored by “gaiyaguang”
1 parent e9890703

修改部分UI

... ... @@ -853,7 +853,7 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
} else {
//拒绝通讯录权限 , 苹果拒绝权限后,不再提示权限框,进入此处
DialogUtil.openAlertDialog(
context, '未获得通讯录权限', "请在手机的权限管理里,将通讯录权限开启", '去设置', 340.0,
context, '未获得通讯录权限', "请在手机的权限管理里,将通讯录权限开启。", '去设置', 340.0,
onTap: () {
openSetting();
Navigator.pop(context, '');
... ...
... ... @@ -144,7 +144,7 @@ class _BookTimeSetPageState extends State<BookTimeSetPage> {
noon.start = night.start;
}
});
Utils.compareDateTime(noon.end, morning.start, (needChange) {
Utils.compareDateTime(noon.end, night.start, (needChange) {
if (!needChange) {
noon.end = night.start;
}
... ...
... ... @@ -85,6 +85,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
///获取短信余量
_getSmsInfo(context) async {
myModel = Provider.of<MyModel>(context, listen: false);
await myModel.getSmsInfo(context);
// setState(() {
// if (smsInfoData != null) {
... ...
... ... @@ -163,8 +163,8 @@ class _ReceiveOrdersTimeSetPageState extends State<ReceiveOrdersTimeSetPage> {
if (isSuccess) {
///弹出提示框
///
DialogUtil.openAlertDialog(
context, '接单时间已修改', '需要重启电话机才能生效', '知道了', 295,
DialogUtil.openAlertDialog(context, '接单时间已修改',
'需要重启电话机才能生效', '知道了', 295, fontSize: 30,
onTap: () {
EventBus().emit('changeStatusColor');
Navigator.of(context).pop();
... ...
... ... @@ -685,7 +685,7 @@ class DialogUtil {
static Future openAlertDialog(BuildContext context, String title,
String content, String btnTitle, double height,
{GestureTapCallback onTap}) async {
{GestureTapCallback onTap, double fontSize = 36}) async {
final action = await showDialog(
context: context,
barrierDismissible: true,
... ... @@ -708,7 +708,7 @@ class DialogUtil {
alignment: Alignment.center,
child: Text(title,
style: TextStyle(
fontSize: ScreenUtil().setSp(36),
fontSize: ScreenUtil().setSp(fontSize),
color: MyColours.color_353535)),
),
VEmptyView(20),
... ... @@ -728,7 +728,7 @@ class DialogUtil {
content,
style: TextStyle(
color: MyColours.color_353535,
fontSize: ScreenUtil().setSp(28),
fontSize: ScreenUtil().setSp(30),
),
strutStyle: StrutStyle(
forceStrutHeight: true,
... ... @@ -747,7 +747,7 @@ class DialogUtil {
child: Text(
btnTitle,
style: TextStyle(
color: MyColours.color_2bb5b7,
color: MyColours.color_199095,
fontSize: ScreenUtil().setWidth(34)),
),
),
... ... @@ -853,6 +853,7 @@ class DialogUtil {
InkWell(
child: Container(
height: ScreenUtil().setWidth(47 * 2),
width: ScreenUtil().setWidth(135 * 2),
alignment: Alignment.center,
child: Text(
"信息有误",
... ... @@ -873,6 +874,7 @@ class DialogUtil {
InkWell(
child: Container(
height: ScreenUtil().setWidth(47 * 2),
width: ScreenUtil().setWidth(135 * 2),
alignment: Alignment.center,
child: Text(
"确认无误",
... ...