You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PatientApp-KKUMC/lib/pages/login/welcome.dart

76 lines
3.0 KiB
Dart

import 'package:diplomaticquarterapp/config/size_config.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:diplomaticquarterapp/widgets/buttons/button.dart';
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class WelcomeLogin extends StatelessWidget {
@override
Widget build(BuildContext context) {
return AppScaffold(
appBarTitle: TranslationBase.of(context).welcome,
body: Padding(
padding: EdgeInsets.all(20),
child: Column(
children: <Widget>[
Expanded(
flex: 3,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/images/habib-logo.png',
height: 80,
width: 80,
),
Text(
TranslationBase.of(context).welcome,
style: TextStyle(fontSize: 30),
textAlign: TextAlign.left,
),
Text(
TranslationBase.of(context).welcomeText,
style: TextStyle(fontSize: 24),
textAlign: TextAlign.left,
),
Text(
TranslationBase.of(context).welcomeText2,
style: TextStyle(fontSize: 24),
textAlign: TextAlign.left,
)
]),
),
Expanded(
flex: 2,
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Row(
children: <Widget>[
Expanded(
child: RaisedButton(
color: Colors.red[900],
textColor: Colors.white,
child: Text(TranslationBase.of(context).yes),
onPressed: () => {},
))
],
),
Row(
children: <Widget>[
Expanded(
child: RaisedButton(
child: Text(TranslationBase.of(context).no),
onPressed: () => {},
))
],
),
],
))
],
)));
}
}