slide transition of menu

This commit is contained in:
Patrick Alvin Alcala 2025-04-04 10:06:19 +08:00
parent 9de2d0e7d2
commit b892cc485f
8 changed files with 113 additions and 15 deletions

View file

@ -44,7 +44,7 @@ class _AddCategoryPageState extends State<AddCategoryPage> {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
context.push('/main');
context.pop();
}
});
} else {

View file

@ -45,7 +45,7 @@ class _AddGenericsPageState extends State<AddGenericsPage> {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
context.push('/main');
context.pop();
}
});
}

View file

@ -46,7 +46,7 @@ class _AddManufacturerPageState extends State<AddManufacturerPage> {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
context.push('/main');
context.pop();
}
});
}

View file

@ -136,7 +136,7 @@ class _AddMedicinePageState extends State<AddMedicinePage> {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
context.push('/main');
context.pop();
}
});
}

View file

@ -44,7 +44,7 @@ class _AddTypePageState extends State<AddTypePage> {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
context.push('/main');
context.pop();
}
});
}

View file

@ -43,7 +43,7 @@ class _DeleteStockPageState extends State<DeleteStockPage> {
final result = await checkResult(context, _stockList, 'Generics');
if (result) {
if (mounted) {
context.push('/main');
context.pop();
}
} else {
setState(() => {});

View file

@ -243,7 +243,7 @@ class _MainPageState extends State<MainPage> {
color: 'yellow'),
const Gap(40),
ButtonWithProgressWidget(
trigger: _isLoading, progressText: 'Logging Out', buttonText: 'Logout', onPressed: signOut)
trigger: _isLoading, progressText: 'Logging Out', buttonText: 'Logout', onPressed: signOut),
],
),
),