update
This commit is contained in:
parent
3e6781a0bd
commit
5469c484e1
10 changed files with 204 additions and 48 deletions
|
|
@ -2,12 +2,17 @@ import 'package:flutter/material.dart';
|
|||
import 'package:go_router/go_router.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:pharmacy_mobile/widgets/button_widget.dart';
|
||||
|
||||
class IndexPage extends StatelessWidget {
|
||||
const IndexPage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
void gotoLogin() {
|
||||
context.push('/login');
|
||||
}
|
||||
|
||||
return Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
body: Container(
|
||||
|
|
@ -40,8 +45,8 @@ class IndexPage extends StatelessWidget {
|
|||
child: Image.asset('assets/ph_logo.webp',
|
||||
width: 256, cacheWidth: (256 * MediaQuery.of(context).devicePixelRatio).round()),
|
||||
),
|
||||
const Gap(16),
|
||||
TextButton(onPressed: () => {context.push('/login')}, child: const Text('Login'))
|
||||
const Gap(32),
|
||||
ButtonWidget(text: 'Login', onPressed: gotoLogin)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue