Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter run code after build

1) WidgetsBinding.instance.addPostFrameCallback((_) => yourFunc(context));

2) Future.delayed(Duration.zero, () => yourFunc(context));

3) Timer.run(() => yourFunc(context));
 
PREVIOUS NEXT
Tagged: #flutter #run #code #build
ADD COMMENT
Topic
Name
5+7 =