Answers for "Flutter in Action"

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 "Flutter in Action"

Browse Popular Code Answers by Language