Flutter prevent overflow layout

Adding a layer of the layout slidably View (Widget) of the package prior to:

 

the Scaffold new new return (
      appbar: new new the AppBar (
        title: new new Text ( "Search"),
      ),
      // use ScrollView packaged, otherwise it will error pop-up keyboard space overflow
      body: new new SingleChildScrollView (
            Child: new new ConstrainedBox (
              the Constraints: new new BoxConstraints (
                minHeight: 120.0,
              ),
              Child: the Column new new (
                mainAxisSize: MainAxisSize.min,
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                Children: <the Widget> [
                  new new the padding (
                    padding: EdgeInsets.fromLTRB (0.0, 40.0, 0.0, 10.0),
                    child:new Text("注意",style: new TextStyle(fontSize: 18.0,color: Colors.orangeAccent),),
                  ),
                 
 
 
                ],
              ),
            ),
          ),
 
    );

Guess you like

Origin www.cnblogs.com/gloryhope/p/11307084.html