Initial commit

This commit is contained in:
wgh19
2024-05-13 09:36:23 +08:00
commit b095643cbc
160 changed files with 9956 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import 'package:fluent_ui/fluent_ui.dart';
import '../components/message.dart' as overlay;
import '../components/page_route.dart';
extension Navigation on BuildContext {
void pop<T>([T? result]) {
Navigator.of(this).pop(result);
}
Future<T?> to<T>(Widget Function() builder) {
return Navigator.of(this)
.push<T>(AppPageRoute(builder: (context) => builder()));
}
void showToast({required String message, IconData? icon}) {
overlay.showToast(this, message: message, icon: icon);
}
}