Answers for "perform action when build is done flutter"

1

perform action when build is done flutter

@override
Widget build(BuildContext context) {
  WidgetsBinding.instance.addPostFrameCallback((_) => afterBuild);
  return Container(); // widget tree
}

void afterBuild() {
  // executes after build is done
}
Posted by: Guest on September-12-2021
1

perform action when build is done flutter

WidgetsBinding.instance.addPostFrameCallback((_) {
  // executes after build
})
Posted by: Guest on September-12-2021

Code answers related to "perform action when build is done flutter"

Browse Popular Code Answers by Language