Add android shortcuts
Fix init params issues Fix dynamic color issues Optimize navigator animate Optimize window init Optimize fab Optimize save
This commit is contained in:
11
lib/common/navigator.dart
Normal file
11
lib/common/navigator.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class BaseNavigator {
|
||||
static Future<T?> push<T>(BuildContext context, Widget child) async {
|
||||
return await Navigator.of(context).push<T>(
|
||||
MaterialPageRoute(
|
||||
builder: (context) => child,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user