realizar la acción cuando la construcción se realiza un flutador
WidgetsBinding.instance.addPostFrameCallback((_) {
// executes after build
})
justwonderful
WidgetsBinding.instance.addPostFrameCallback((_) {
// executes after build
})
@override
Widget build(BuildContext context) {
WidgetsBinding.instance.addPostFrameCallback((_) => afterBuild);
return Container(); // widget tree
}
void afterBuild() {
// executes after build is done
}