fix nav bar background color tile color

master
小赖 4 years ago
parent 764eaa9450
commit e11550a706

@ -48,6 +48,7 @@ class _PowerLoggerViewState extends State<PowerLoggerView> {
_setState = kSetState;
return BottomNavigationBar(
currentIndex: _currentIndex,
backgroundColor: Colors.white,
onTap: (index) {
_currentIndex = index;
kSetState(() {});

@ -87,13 +87,16 @@ class _InfoViewState extends State<InfoView>
}
_buildTile(String title, String subTitle) {
return ListTile(
title: Text(title),
subtitle: Text(subTitle ?? ''),
onLongPress: () {
Clipboard.setData(ClipboardData(text: subTitle));
Scaffold.of(context).showSnackBar(SnackBar(content: Text('已复制')));
},
return DefaultTextStyle(
style: TextStyle(color: Colors.black),
child: ListTile(
title: Text(title),
subtitle: Text(subTitle ?? ''),
onLongPress: () {
Clipboard.setData(ClipboardData(text: subTitle));
Scaffold.of(context).showSnackBar(SnackBar(content: Text('已复制')));
},
),
);
}
@ -128,7 +131,7 @@ class _InfoViewState extends State<InfoView>
_buildTile('securityPatch', androidInfo.version.securityPatch),
_buildTile('previewSdkInt', androidInfo.version.previewSdkInt.toString()),
_buildTile('sdkInt', androidInfo.version.sdkInt.toString()),
_buildTile('systemFeatures', androidInfo.systemFeatures.join(',')),
_buildTile('systemFeatures', androidInfo.systemFeatures.join('\n')),
]));
}

Loading…
Cancel
Save