|
|
|
@ -30,7 +30,7 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
child: Center( |
|
|
|
|
child: Container( |
|
|
|
|
width: MediaQuery.of(context).size.width - 80.w, |
|
|
|
|
height: 180.h, |
|
|
|
|
height: 192.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Colors.white, |
|
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
@ -39,7 +39,7 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 110.h, |
|
|
|
|
// height: 110.h, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
padding: EdgeInsets.all(20), |
|
|
|
|
child: Column( |
|
|
|
@ -102,9 +102,7 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
Expanded( |
|
|
|
|
child: InkWell( |
|
|
|
|
onTap: () { |
|
|
|
|
(Theme.of(context).platform == TargetPlatform.android) ? |
|
|
|
|
androidUpdate():Bridge.toAppStore().then((value) { |
|
|
|
|
}); |
|
|
|
|
updateApp(); |
|
|
|
|
// Navigator.of(context).pop(); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
@ -139,7 +137,7 @@ class _UpdateDialog extends State<UpdateDialog> {
|
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
androidUpdate() async { |
|
|
|
|
updateApp() async { |
|
|
|
|
String url = Platform.isIOS ? "itms-apps://itunes.apple.com/app/id1575124838":"http://application.lotus-wallet.com/huixaing?release_id=627cadff23389f2fe6d57cb1"; |
|
|
|
|
if (await canLaunch(url)) { |
|
|
|
|
await launch(url); |
|
|
|
|