flutter_waya 8.6.3  flutter_waya: ^8.6.3 copied to clipboard
flutter_waya: ^8.6.3 copied to clipboard
The Flutter UI library contains multiple custom components,compatible with android,web,ios and MAC.
flutter_waya #
Example 运行 Example 查看使用 #
初始化 navigatorKey 两种方式 #
/// 设置你自己的 navigatorKey
void setGlobalNavigatorKey() {
  GlobalWayUI().scaffoldMessengerKey = scaffoldMessengerKey;
  GlobalWayUI().navigatorKey = navigatorKey;
}
/// 使用自己的 MaterialApp
class _CustomAppState extends ExtendedState<_App> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        navigatorKey: GlobalWayUI().globalNavigatorKey,
        scaffoldMessengerKey: GlobalWayUI().scaffoldMessengerKey,
        title: 'Waya UI',
        home: _Home());
  }
}
/// 根组件使用  ExtendedWidgetsApp , 默认 移出 banner
class _AppState extends ExtendedState<_App> {
  @override
  Widget build(BuildContext context) {
    return ExtendedWidgetsApp(
        title: 'Waya UI', home: _Home(), pushStyle: RoutePushStyle.material);
  }
}
- 使用 ExtendedWillPopScope可自动管理 android 物理返回键 关闭 toast loading 等各种弹窗