We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5041013 commit 20bbd5cCopy full SHA for 20bbd5c
packages/flutter/lib/src/widgets/window.dart
@@ -113,8 +113,11 @@ class _RegularWindowState extends State<RegularWindow> {
113
@override
114
void initState() {
115
super.initState();
116
- _future = createRegular(size: widget._preferredSize);
117
- _future!.then((WindowCreationResult metadata) async {
+ final Future<WindowCreationResult> createRegularFuture =
+ createRegular(size: widget._preferredSize);
118
+ setState(() => _future = createRegularFuture);
119
+
120
+ createRegularFuture.then((WindowCreationResult metadata) async {
121
if (widget.controller != null) {
122
widget.controller!.view = metadata.flView;
123
widget.controller!.parentViewId = metadata.parent;
0 commit comments