w_tools_app 3.0.0
w_tools_app: ^3.0.0 copied to clipboard
w_tools 应用启动契约:WAppPlugin 生命周期与 GetX 无关的插件接口。GetX 启动器见 w_tools_app_getx。
w_tools_app #
w_tools_app 是 w_tools 的应用启动契约层,只包含与 GetX 无关的插件接口:
class AppServicePlugin extends WAppPlugin {
@override
String get name => 'app-service';
@override
Future<void> onInit() async {
// 初始化
}
}
需要完整的 WApp 启动器、GetX 路由、语言切换与底部弹窗时,依赖:
dependencies:
w_tools_app_getx: ^1.0.0
w_tools_app_getx 会 re-export 本包的 WAppPlugin。