fix white edge color search bar on dark theme

This commit is contained in:
shreyas1599 2020-02-09 19:43:48 +05:30 committed by Rongjian Zhang
parent 251dae4011
commit 2b09db6623
1 changed files with 7 additions and 1 deletions

View File

@ -112,10 +112,16 @@ class _GhSearchScreenState extends State<GhSearchScreen> {
}
Widget _buildInput() {
final theme = Provider.of<ThemeModel>(context);
final brightnessType = theme.brighnessValue;
var color = Colors.black;
if(brightnessType == AppBrightnessType.light) {
color = Colors.white;
}
switch (Provider.of<ThemeModel>(context).theme) {
case AppThemeType.cupertino:
return Container(
color: Colors.white,
color: color,
child: CupertinoTextField(
prefix: Row(
children: <Widget>[