更新眠花糖web升级提示
This commit is contained in:
@@ -94,35 +94,40 @@ class _NewHomePageState extends State<NewHomePage> {
|
||||
//未登录
|
||||
return;
|
||||
}
|
||||
showTipUpgradeDialog(
|
||||
context,
|
||||
Column(
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 94.rpx,
|
||||
height: 70.rpx,
|
||||
child: SvgPicture.asset(
|
||||
'assets/img/icon/upgrade.svg',
|
||||
fit: BoxFit.cover,
|
||||
// color: themeController.currentColor.sc3, // 若你想加颜色控制可取消注释
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"web控制更新".tr,
|
||||
style: TextStyle(
|
||||
color: stringToColor("#333333"),
|
||||
fontSize: AppConstants().title_text_fontSize,
|
||||
),
|
||||
),
|
||||
Text("新版本号".tr +
|
||||
":" +
|
||||
"${pkg.version}" +
|
||||
"," +
|
||||
"点击确认退出app,重新进入".tr),
|
||||
].divide(SizedBox(
|
||||
height: 37.rpx,
|
||||
)),
|
||||
));
|
||||
homeController.selectUpdateTips().then((bool tips) {
|
||||
//眠花糖更新提示
|
||||
if (tips) {
|
||||
showTipUpgradeDialog(
|
||||
context,
|
||||
Column(
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 94.rpx,
|
||||
height: 70.rpx,
|
||||
child: SvgPicture.asset(
|
||||
'assets/img/icon/upgrade.svg',
|
||||
fit: BoxFit.cover,
|
||||
// color: themeController.currentColor.sc3, // 若你想加颜色控制可取消注释
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"web控制更新".tr,
|
||||
style: TextStyle(
|
||||
color: stringToColor("#333333"),
|
||||
fontSize: AppConstants().title_text_fontSize,
|
||||
),
|
||||
),
|
||||
Text("新版本号".tr +
|
||||
":" +
|
||||
"${pkg.version}" +
|
||||
"," +
|
||||
"点击确认退出app,重新进入".tr),
|
||||
].divide(SizedBox(
|
||||
height: 37.rpx,
|
||||
)),
|
||||
));
|
||||
}
|
||||
});
|
||||
});
|
||||
} catch (e) {
|
||||
print(e);
|
||||
@@ -573,7 +578,7 @@ class _NewHomePageState extends State<NewHomePage> {
|
||||
onTap: () {
|
||||
if (formFieldController
|
||||
.value !=
|
||||
null) {
|
||||
null) {
|
||||
sleepReportController
|
||||
.initParams(
|
||||
macValue:
|
||||
|
||||
Reference in New Issue
Block a user