Open mdazy opened 1 year ago
I have added a third example in the repository: wrapping the entire build()
inside a single MaterialApp
appears to work. I'm guessing multiple MaterialApps
inside upper-level layout components are a no-go for Flutter.
However, even in that third example I'm still getting overflow/cropping issues. None of the examples are supplying an explicit size - am I wrong in assuming golden_toolkit is supposed to resize the consolidated screenshot as necessary?
Actual results
A builder grid test with a simple widget triggers an assert in Flutter if a
MaterialApp
wrapper is used (e.g.materialAppWrapper
):The second case causes an assert with this log
Expected results
Flutter version
Flutter 3.10.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 9cd3d0d9ff (6 weeks ago) • 2023-05-23 20:57:28 -0700 Engine • revision 90fa3ae28f Tools • Dart 3.0.2 • DevTools 2.23.1
Repro
https://github.com/mdazy/golden_builder_assert
Related
https://github.com/flutter/flutter/issues/129902