Skip to main content

w_tools_app 3.1.0 copy "w_tools_app: ^3.1.0" to clipboard
w_tools_app: ^3.1.0 copied to clipboard

w_tools GetX-free 应用内核:插件契约/编排、语言状态与外观配置。GetX 启动器见 w_tools_app_getx。

w_tools_app #

w_tools_app 是 w_tools 的 GetX-free 应用内核,提供:

  • WAppPlugin:插件契约;
  • WAppPluginRunner:插件注册表、dependsOn 分层初始化;
  • WLanguage / WLocaleConfig:语言状态与语言配置;
  • WAppTheme:应用外观(亮/暗主题、主题模式、系统栏)。
class AppServicePlugin extends WAppPlugin {
  @override
  String get name => 'app-service';

  @override
  Future<void> onInit() async {
    // 初始化
  }
}

final runner = WAppPluginRunner([AppServicePlugin()]);
await runner.init();

需要完整的 WApp 启动器、GetX 路由与底部弹窗时,依赖:

dependencies:
  w_tools_app_getx: ^2.0.0

需要 GetX 启动器时使用 w_tools_app_getx;本包的内核类型可以直接从 package:w_tools_app/w_tools_app.dart 引用。

历史迁移 #

升级前先看 docs/migrations/: 每个包的 breaking 变更都有「旧 → 新」对照,不只是变更清单。

0
likes
0
points
1.88k
downloads

Publisher

unverified uploader

Weekly Downloads

w_tools GetX-free 应用内核:插件契约/编排、语言状态与外观配置。GetX 启动器见 w_tools_app_getx。

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #app-starter #plugin

License

unknown (license)

Dependencies

flutter

More

Packages that depend on w_tools_app