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.
Consider the following applet:
Running with
flutter runthis outputs:Running with
flutter run --releasethis outputs:This is problematic especially in the case of animating a widget based on its initial constraints.