Flutter suggestive of system components

Add the following code can be achieved informational system set up

RaisedButton(
  onPressed: (){
    Scaffold.of(context).showBottomSheet(
            (BuildContext context) {
          return new Container(
            height: 100,
            child: Text ( 'bottomsheet appeared'),
          );
        },

        backgroundColor:Colors.blue,
        elevation: 10,
        shape: RoundedRectangleBorder(),
        clipBehavior: Clip.antiAlias

    );


  },
  child: Text ( 'click Show BottomSheet'),

),
Published 368 original articles · won praise 22 · Views 200,000 +

Guess you like

Origin blog.csdn.net/BianHuanShiZhe/article/details/104772966