add update page
parent
cb568d74c0
commit
f55bb4e60e
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,64 @@
|
|||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/secondary_button.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
import 'dart:io' show Platform;
|
||||||
|
|
||||||
|
class UpdatePage extends StatelessWidget {
|
||||||
|
final String message;
|
||||||
|
final String androidLink;
|
||||||
|
final String iosLink;
|
||||||
|
|
||||||
|
const UpdatePage({Key key, this.message, this.androidLink, this.iosLink})
|
||||||
|
: super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return SafeArea(
|
||||||
|
child: AppScaffold(
|
||||||
|
isShowAppBar: false,
|
||||||
|
backgroundColor: Colors.white,
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
physics: BouncingScrollPhysics(),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Image.asset(
|
||||||
|
'assets/images/update_rocket_image.png',
|
||||||
|
width: double.maxFinite,fit: BoxFit.fill,
|
||||||
|
),
|
||||||
|
Image.asset('assets/images/HMG_logo.png'),
|
||||||
|
SizedBox(height: 8,),
|
||||||
|
Texts(
|
||||||
|
TranslationBase.of(context).updateTheApp.toUpperCase(),fontSize: 17,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
),
|
||||||
|
SizedBox(height: 12,),
|
||||||
|
Texts(message??"Update the app",fontSize: 12,)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
bottomSheet: Container(
|
||||||
|
height: 80,
|
||||||
|
child: Container(
|
||||||
|
// padding: const EdgeInsets.all(8.0),
|
||||||
|
margin: EdgeInsets.all(15),
|
||||||
|
child: SecondaryButton(
|
||||||
|
color: Colors.red[800],
|
||||||
|
onTap: () {
|
||||||
|
if (Platform.isIOS)
|
||||||
|
launch(iosLink);
|
||||||
|
else
|
||||||
|
launch(androidLink);
|
||||||
|
},
|
||||||
|
label: TranslationBase.of(context).updateNow.toUpperCase(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue