slide transition of menu
This commit is contained in:
parent
9de2d0e7d2
commit
b892cc485f
8 changed files with 113 additions and 15 deletions
|
|
@ -44,7 +44,7 @@ class _AddCategoryPageState extends State<AddCategoryPage> {
|
|||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) {
|
||||
context.push('/main');
|
||||
context.pop();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class _AddGenericsPageState extends State<AddGenericsPage> {
|
|||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) {
|
||||
context.push('/main');
|
||||
context.pop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class _AddManufacturerPageState extends State<AddManufacturerPage> {
|
|||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) {
|
||||
context.push('/main');
|
||||
context.pop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ class _AddMedicinePageState extends State<AddMedicinePage> {
|
|||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) {
|
||||
context.push('/main');
|
||||
context.pop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class _AddTypePageState extends State<AddTypePage> {
|
|||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) {
|
||||
context.push('/main');
|
||||
context.pop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(() => {});
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue