|
|
|
@ -30,46 +30,48 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
child: Center( |
|
|
|
|
child: Container( |
|
|
|
|
width: MediaQuery.of(context).size.width - 80.w, |
|
|
|
|
height: 165.h, |
|
|
|
|
// height: 216.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Colors.white, |
|
|
|
|
borderRadius: BorderRadius.circular(8.r), |
|
|
|
|
), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisSize: MainAxisSize.min, |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
// height: 110.h, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
padding: EdgeInsets.all(20), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
"检测到新版本 v${widget.appUpdate.appLastVersion}", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 17.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
width: double.infinity, |
|
|
|
|
// height: 110.h, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
padding: EdgeInsets.all(20), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
"发现新版本 v${widget.appUpdate.appLastVersion}", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 17.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 12.h,), |
|
|
|
|
Text( |
|
|
|
|
"是否需要更新到最新版本?", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 17.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF333333), |
|
|
|
|
SizedBox(height: 12.h,), |
|
|
|
|
Text( |
|
|
|
|
widget.appUpdate.appLastVersionExplain ?? "", |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 17.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF333333), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
color: Color(0x1A000000), |
|
|
|
|
height: 1.h, |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
height: 69.h, |
|
|
|
|
height:55.h, |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
|
children: [ |
|
|
|
@ -81,7 +83,7 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 90.h, |
|
|
|
|
// height: 90.h, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Text( |
|
|
|
|
"下次再说", |
|
|
|
@ -107,7 +109,7 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 90.h, |
|
|
|
|
// height: 90.h, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Text( |
|
|
|
|
"立即更新", |
|
|
|
|