mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 19:47:47 +08:00
change initState
This commit is contained in:
@@ -19,8 +19,13 @@ class _WeclomePageState extends State<WelcomePage> {
|
||||
var favList = List.empty(growable: true);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
void initState() {
|
||||
super.initState();
|
||||
_onRefresh();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GridView.builder(
|
||||
itemCount: favList.length,
|
||||
gridDelegate:
|
||||
|
||||
Reference in New Issue
Block a user