Комментарии:
I think your reasoning about the Visibility widget is wrong. If visible = false, it's not "forgotten" but just hidden/not rendered. It will still do the init work. Test this for example in a Visibility widget and set it to visible = false and you'll see a print from it:
class Example extends StatefulWidget {
Example();
_ExampleState createState() => _ExampleState();
}
class _ExampleState extends State<Example> {
@override
void initState() {
_getThingsOnStartup().then((value){
print('Async done');
});
super.initState();
}
@override
Widget build(BuildContext context) {
return Container();
}
Future _getThingsOnStartup() async {
await Future.delayed(Duration(seconds: 2));
}
}
Good content.
Please make more content and especially like these.
These little features are easy to implement and understand for a beginner.
Expert people in flutter don't need your tutorials, they know how to do things.
We beginners need guide to use these.
So make videos about these little features, it'll will help us a lot and you'll surely get more views n all.
My suggestion :
You could make videos about using animated shopping cart button, using play pause button, omelet radio button, how to use animated objects in your projects to make it look better, etc...
And I emphasize on targeting flutter newbie learner audience.
Hope this helps ❤
i think there is a typo in title (pefresh- refresh)
Ответить