I want to use a widget with a background color that only occupy a specific space without expanding for full screen. But, if I try this with Container it doesn't work like I want:
Container( decoration: BoxDecoration( color: AppColors.white.withOpacity(0.8), borderRadius: BorderRadius.circular(24), ), ),
This code occupy the full screen, instead of only using the size it needs.
The idea is to show a Text and a Button in a Column, with a white background color. How can I accomplish this?
https://stackoverflow.com/questions/67327850/flutter-widget-background-not-fill-screen April 30, 2021 at 11:30AM
没有评论:
发表评论