fix widget built twice during warm up frame (#39079)
This commit is contained in:
@@ -993,6 +993,14 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
|
||||
_currentFakeAsync.flushMicrotasks();
|
||||
}
|
||||
|
||||
@override
|
||||
void scheduleAttachRootWidget(Widget rootWidget) {
|
||||
// We override the default version of this so that the application-startup widget tree
|
||||
// build does not schedule timers which we might never get around to running.
|
||||
attachRootWidget(rootWidget);
|
||||
_currentFakeAsync.flushMicrotasks();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> idle() {
|
||||
final Future<void> result = super.idle();
|
||||
|
||||
Reference in New Issue
Block a user