Updated index page
This commit is contained in:
parent
2d7ce03c22
commit
9fbaca3acc
1 changed files with 47 additions and 10 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:ocbo_esign_validator/widgets/circle_widget.dart';
|
||||
import 'package:ocbo_esign_validator/widgets/image_widget.dart';
|
||||
import 'package:ocbo_esign_validator/widgets/text_widget.dart';
|
||||
|
||||
|
|
@ -8,17 +10,52 @@ class IndexPage extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
void gotoApproval() {
|
||||
context.push('/approval');
|
||||
}
|
||||
|
||||
void gotoValidation() {
|
||||
context.push('/validate');
|
||||
}
|
||||
|
||||
return Scaffold(
|
||||
body: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
const Gap(88),
|
||||
const ImageWidget(imagePath: 'assets/logo.png', size: 140, measureByHeight: true),
|
||||
const Gap(20),
|
||||
const TextWidget(text: "OCBO e-Sign", color: Colors.black, bold: true, size: 32),
|
||||
const Gap(2),
|
||||
const TextWidget(text: "Mobile", color: Colors.black, bold: true),
|
||||
],
|
||||
resizeToAvoidBottomInset: false,
|
||||
body: Container(
|
||||
alignment: Alignment.center,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
decoration: const BoxDecoration(color: Color.fromRGBO(21, 31, 42, 1)),
|
||||
child: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
const Gap(88),
|
||||
const ImageWidget(imagePath: 'assets/logo.png', size: 140, measureByHeight: true),
|
||||
const Gap(20),
|
||||
const TextWidget(text: "OCBO e-Sign", color: Color.fromARGB(255, 244, 243, 243), bold: true, size: 32),
|
||||
const Gap(2),
|
||||
const TextWidget(text: "Mobile", color: Color.fromARGB(255, 244, 243, 243), bold: true),
|
||||
const Gap(200),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
spacing: 32,
|
||||
children: <Widget>[
|
||||
CircleWidget(
|
||||
icon: Icons.thumb_up,
|
||||
text: 'Approval',
|
||||
onPressed: () {
|
||||
gotoApproval();
|
||||
},
|
||||
),
|
||||
CircleWidget(
|
||||
icon: Icons.qr_code,
|
||||
text: 'Validate',
|
||||
onPressed: () {
|
||||
gotoValidation();
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue