mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
add login
This commit is contained in:
@@ -24,9 +24,13 @@ class _BaseStateWidgetState<T extends BaseViewModel> extends ConsumerState<BaseS
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
if (widget.onReady != null) {
|
||||
widget.onReady!(ref.read<T>(widget.model));
|
||||
}
|
||||
WidgetsBinding.instance?.addPostFrameCallback(
|
||||
(timeStamp) {
|
||||
if (widget.onReady != null) {
|
||||
widget.onReady!(ref.read<T>(widget.model));
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user