Posts

Showing posts from June, 2022

How to use the shape in RaisedButton in Flutter?

If you want to get something fancier, it is highly recommended to use the Image for the background of RaisedButton shape , and then you can use an ExImage for the icon. I'm  new to Flutter so I train myself by making a simple form. I realized while I was debugging on my iPhone the virtual keyboard triggered an error : "A RenderFlex overflowed by 29 pixels on the bottom". I fixed this issue by wrapping my Container inside a SingleChildScrollView. The problem now is my Column's content is no longer center. I can't figure out why ... Here's my code to help you to understand : List<Widget> _buildBody() { var listWidget = List<Widget>(); SingleChildScrollView singleChild = SingleChildScrollView( padding: EdgeInsets.only(top: 1.0), child: Container( alignment: Alignment.center, margin: EdgeInsets.all(30.0), padding: EdgeInsets.all(10.0), child: Form( key: _formKey, ...