mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-09-24 07:05:02 +08:00
feat(增加免责声明): 声明组件,自动弹出,左上角入口
This commit is contained in:
@ -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;
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
Reference in New Issue
Block a user