feat(增加免责声明): 声明组件,自动弹出,左上角入口

This commit is contained in:
ryan730
2019-01-13 17:41:23 +08:00
parent 9202d60133
commit 7cf8d11fda
5 changed files with 387 additions and 23 deletions

View File

@ -121,12 +121,12 @@ class _MyHomePageState extends State<MyHomePage>
return list
.map((item) => new MaterialSearchResult<String>(
value: item.name,
text: item.name,
onTap: () {
onWidgetTap(item, context);
},
))
value: item.name,
text: item.name,
onTap: () {
onWidgetTap(item, context);
},
))
.toList();
} else {
return null;
@ -163,7 +163,7 @@ class _MyHomePageState extends State<MyHomePage>
child: new TabBar(
controller: controller,
indicatorColor:
Theme.of(context).primaryColor, //tab标签的下划线颜色
Theme.of(context).primaryColor, //tab标签的下划线颜色
// labelColor: const Color(0xFF000000),
indicatorWeight: 3.0,
labelColor: Theme.of(context).primaryColor,
@ -184,11 +184,11 @@ class _MyHomePageState extends State<MyHomePage>
}
}
// void _onDataChange(val) {
// if (this.mounted) {
// setState(() {
// data = val;
// });
// }
// }
// void _onDataChange(val) {
// if (this.mounted) {
// setState(() {
// data = val;
// });
// }
// }
}