diff --git a/lib/view_widget/update_dialog.dart b/lib/view_widget/update_dialog.dart index 3e93e1ad..97605d08 100644 --- a/lib/view_widget/update_dialog.dart +++ b/lib/view_widget/update_dialog.dart @@ -30,7 +30,7 @@ class _UpdateDialog extends State { 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 { 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 { 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 { 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);