Search.dart

import 'package:flutter/material.dart';
import 'package:flutter_jdshop/services/ScreenAdaper.dart'; class SearchPage extends StatefulWidget {
SearchPage({Key key}) : super(key: key); _SearchPageState createState() => _SearchPageState();
} class _SearchPageState extends State<SearchPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Container(
child: TextField(
autofocus: true,
decoration: InputDecoration(
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(),
borderSide: BorderSide.none)),
),
height: ScreenAdaper.height(),
decoration: BoxDecoration(
color: Color.fromRGBO(, , , 0.8),
borderRadius: BorderRadius.circular()),
),
actions: <Widget>[
InkWell(
child: Container(
height: ScreenAdaper.height(),
width: ScreenAdaper.width(),
child: Row(
children: <Widget>[Text('搜索')],
),
),
onTap: () {},
)
],
),
body: Container(
padding: EdgeInsets.all(),
child: ListView(
children: <Widget>[
Container(
child: Text('热搜', style: Theme.of(context).textTheme.title),
),
Divider(),
Wrap(
children: <Widget>[
Container(
padding: EdgeInsets.all(),
margin: EdgeInsets.all(),
decoration: BoxDecoration(
color: Color.fromRGBO(, , , 0.9),
borderRadius: BorderRadius.circular()),
child: Text('女装'),
),
Container(
padding: EdgeInsets.all(),
margin: EdgeInsets.all(),
decoration: BoxDecoration(
color: Color.fromRGBO(, , , 0.9),
borderRadius: BorderRadius.circular()),
child: Text('女装'),
),
Container(
padding: EdgeInsets.all(),
margin: EdgeInsets.all(),
decoration: BoxDecoration(
color: Color.fromRGBO(, , , 0.9),
borderRadius: BorderRadius.circular()),
child: Text('女装'),
),
Container(
padding: EdgeInsets.all(),
margin: EdgeInsets.all(),
decoration: BoxDecoration(
color: Color.fromRGBO(, , , 0.9),
borderRadius: BorderRadius.circular()),
child: Text('女装'),
),
Container(
padding: EdgeInsets.all(),
margin: EdgeInsets.all(),
decoration: BoxDecoration(
color: Color.fromRGBO(, , , 0.9),
borderRadius: BorderRadius.circular()),
child: Text('女装'),
)
],
),
SizedBox(height: ),
Container(
child: Text('历史记录', style: Theme.of(context).textTheme.title),
),
Divider(),
Column(
children: <Widget>[
ListTile(
title: Text('女装'),
),
Divider(),
ListTile(
title: Text('女装'),
),
Divider(),
ListTile(
title: Text('女装'),
),
Divider(),
ListTile(
title: Text('女装'),
),
Divider(),
],
),
SizedBox(height: ),
InkWell(
onTap: (){ },
child: Container(
width: ScreenAdaper.width(),
height: ScreenAdaper.height(),
decoration: BoxDecoration(
border: Border.all(color: Colors.black54, width: )),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[Icon(Icons.delete), Text('清空历史记录')],
),
),
)
],
),
));
}
}

最新文章

  1. Linux基础介绍【第七篇】
  2. 前端试题本(HTML+CSS篇)
  3. List的FindIndex和ForEach
  4. 5分钟windows wamp php安装phpunit 2015最新安装实践
  5. 基础知识《五》---Java多线程的常见陷阱
  6. Sqoop安装及操作
  7. 打印W图案
  8. Activiti的Eclipse插件离线安装指南
  9. TsFltMgr.sys系统蓝屏的原因就在于QQ电脑管家!
  10. 低功耗之战!ANT VS Bluetooth LE
  11. 结对作业-基于GUI的四则运算
  12. Android执行时ART载入类和方法的过程分析
  13. Bouml快速使用指南
  14. jenkins的 git多分支自动构建
  15. MySQL中and和or的优先级的问题
  16. oracle(2)
  17. nio 序列化
  18. 安全测试&#160;web应用安全测试之XXS跨站脚本攻击检测
  19. JVM EXCEPTION_ACCESS_VIOLATION
  20. Activity生命周期详解

热门文章

  1. 解决在Linux操作系统下无法连接MySQL服务端的问题
  2. 企业级自动化运维工具应用实战ansible
  3. Visual studio 2010 打开高版本VS工程解决办法
  4. 用arduino的uno开发板为nano板子烧写bootloader
  5. vs2010 glfw glew glad glm 配置
  6. Octave基本语法
  7. Why Go? – Key advantages you may have overlooked
  8. Robot Framework--运行pybot时出错
  9. postgresql backup
  10. UVA1426 Discrete Square Roots