-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: animationAnimation APIsAnimation APIsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Consider the following applet:
void main() {
runApp(
new MaterialApp(
title: 'Bug Showcase',
theme: new ThemeData(
primarySwatch: Colors.blue
),
home: new LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) {
print(constraints);
return new Container();
}
)
)
);
}
Running with flutter run this outputs:
I/flutter : BoxConstraints(w=360.0, h=640.0)
Running with flutter run --release this outputs:
I/flutter : BoxConstraints(w=0.0, h=0.0)
I/flutter : BoxConstraints(w=360.0, h=640.0)
This is problematic especially in the case of animating a widget based on its initial constraints.
Metadata
Metadata
Assignees
Labels
a: animationAnimation APIsAnimation APIsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.