This commit is contained in:
Patrick Alvin Alcala 2025-02-04 12:05:42 +08:00
parent 50d2cba7f2
commit 7fca1e79a8
9 changed files with 53 additions and 23 deletions

View file

@ -41,31 +41,35 @@ class MainPage extends StatelessWidget {
const TextWidget(text: 'Menu'),
const Gap(16),
MenuWidget(
icon: FontAwesomeIcons.squarePlus,
text: 'Add Medicine',
onPressed: gotoAddMedicine,
),
icon: FontAwesomeIcons.squarePlus,
text: 'Add Medicine',
onPressed: gotoAddMedicine,
color: 'green'),
const Gap(16),
MenuWidget(
icon: FontAwesomeIcons.squarePlus,
text: 'Add Generics',
onPressed: gotoAddGenerics,
),
icon: FontAwesomeIcons.squarePlus,
text: 'Add Generics',
onPressed: gotoAddGenerics,
color: 'green'),
const Gap(16),
MenuWidget(
icon: FontAwesomeIcons.squarePlus, text: 'Add Stock', onPressed: () => {context.push('/addstock')}),
icon: FontAwesomeIcons.squarePlus,
text: 'Add Stock',
onPressed: () => {context.push('/addstock')},
color: 'green'),
const Gap(16),
MenuWidget(
icon: FontAwesomeIcons.squarePlus,
text: 'Add Medicine Type',
onPressed: () => {context.push('/addtype')}),
onPressed: () => {context.push('/addtype')},
color: 'green'),
const Gap(32),
MenuWidget(
icon: FontAwesomeIcons.listCheck,
text: 'List of Stocks',
onPressed: () => {context.push('/liststocks')}),
onPressed: () => {context.push('/liststocks')},
color: 'yellow'),
const Gap(40),
// TextButton(onPressed: () => {_signOut()}, child: const Text('Logout')),
ButtonWidget(
text: 'Logout',
onPressed: signOut,