hard20 pts · first answer countscross-platform-mobileflutterlayout
Container ignores its width
Why does this Container fill the whole screen instead of being 100 × 100?
void main() => runApp( Container(width: 100, height: 100, color: Colors.red), );
Discussion 0
Join free to post in the discussion.
Related questions
- StatelessWidget or StatefulWidgetMobile App Developer
- Compose modifier orderMobile App Developer
- Layering views in SwiftUIMobile App Developer
- Flutter hot reload vs restartMobile App Developer
- Two buttons sharing a rowMobile App Developer
- Dart final versus constMobile App Developer
- What a BuildContext isMobile App Developer
- Reading the screen widthMobile App Developer