|
|
|
@ -30,10 +30,10 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
child: Center( |
|
|
|
|
child: Container( |
|
|
|
|
width: MediaQuery.of(context).size.width - 80.w, |
|
|
|
|
height: 192.h, |
|
|
|
|
height: 165.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Colors.white, |
|
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
|
borderRadius: BorderRadius.circular(8.r), |
|
|
|
|
), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
@ -52,7 +52,7 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 12,), |
|
|
|
|
SizedBox(height: 12.h,), |
|
|
|
|
Text( |
|
|
|
|
"是否需要更新到最新版本?", |
|
|
|
|
style: TextStyle( |
|
|
|
@ -138,7 +138,7 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
updateApp() async { |
|
|
|
|
String url = Platform.isIOS ? "itms-apps://itunes.apple.com/app/id1575124838":"http://application.lotus-wallet.com/huixaing?release_id=627cadff23389f2fe6d57cb1"; |
|
|
|
|
String url = Platform.isIOS ? "itms-apps://itunes.apple.com/app/id1575124838":"http://application.lotus-wallet.com/huixaing?release_id="; |
|
|
|
|
if (await canLaunch(url)) { |
|
|
|
|
await launch(url); |
|
|
|
|
} else { |
|
|
|
|