Flutter

flutter 搜索

2019-01-29  本文已影响14人  小郭米

appBar: AppBar(

        backgroundColor: Color.fromARGB(255, 255, 219, 79),

        elevation: 0.0,

        title: new Container(

          decoration: new BoxDecoration(

              border: new Border.all(

                  width: 0.0, color: Color.fromARGB(255, 226, 226, 226)),

              borderRadius: new BorderRadius.all(Radius.circular(5.0)),

              color: Color.fromARGB(255, 255, 255, 255)),

          alignment: Alignment.center,

          height: 30.0,

          child: new Row(

            children: <Widget>[

              new Expanded(

                  child: new Icon(Icons.search,

                      size: 17.0, color: Color.fromARGB(255, 226, 226, 226)),

                  flex: 1),

              new Expanded(

                  child: new Text('热门',

                      style: TextStyle(

                          color: Color.fromARGB(255, 226, 226, 226),

                          fontSize: 17.0)),

                  flex: 9)

            ],

          ),

        ),

      ),

上一篇 下一篇

猜你喜欢

热点阅读