flutter 搜索

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)

            ],

          ),

        ),

      ),

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 注意: 图片链接是https的 在pubspec.yaml 导入库 flutter_swiper : ^1....
    小郭米阅读 1,170评论 0 2
  • 更多信息请查看flutter layout Layouts Sigle-child layout widgets ...
    one_cup阅读 29,086评论 1 17
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,854评论 0 10
  • “作为一名女同志,你应该要更加自信!” 在这这些天的接触当中,这句话不知道在耳边响过多少次了。一次又一次的被提及,...
    空灵静阅读 176评论 2 0
  • 鲁迅当年被包办婚姻,与目不识丁的封建小脚女人朱安结婚,但他在洞房之夜就搬了出去,然后出国三年,与所谓的妻子没有任何...
    两个栗子阅读 6,547评论 45 148

友情链接更多精彩内容