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; _setState = kSetState;
return BottomNavigationBar( return BottomNavigationBar(
currentIndex: _currentIndex, currentIndex: _currentIndex,
backgroundColor: Colors.white,
onTap: (index) { onTap: (index) {
_currentIndex = index; _currentIndex = index;
kSetState(() {}); kSetState(() {});

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

Loading…
Cancel
Save