change initState

This commit is contained in:
Simon Ding
2024-07-07 13:24:57 +08:00
parent edb95df582
commit 1c75ceb6ba
3 changed files with 23 additions and 9 deletions

View File

@@ -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: