login module started
parent
6d6c71655a
commit
4a0cc17069
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
@ -0,0 +1,75 @@
|
|||||||
|
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: () => {},
|
||||||
|
))
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
))
|
||||||
|
],
|
||||||
|
)));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
import 'package:diplomaticquarterapp/pages/landing_page.dart';
|
||||||
|
import 'package:diplomaticquarterapp/pages/login/welcome.dart';
|
||||||
|
|
||||||
|
const String INIT_ROUTE = '/';
|
||||||
|
const String ROOT = 'root';
|
||||||
|
const String HOME = '/';
|
||||||
|
const String LOGIN = 'login';
|
||||||
|
const String WELCOME_LOGIN = 'welcome-login';
|
||||||
|
var routes = {
|
||||||
|
// ROOT: (_) => RootPage(),
|
||||||
|
HOME: (_) => LandingPage(),
|
||||||
|
WELCOME_LOGIN: (_) => WelcomeLogin(),
|
||||||
|
|
||||||
|
// LIVECARE_END_DIALOG: (_) => EndCallDialogBox()
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue