mirror of
https://github.com/git-touch/git-touch
synced 2024-12-17 02:38:39 +01:00
fix white edge color search bar on dark theme
This commit is contained in:
parent
251dae4011
commit
2b09db6623
@ -112,10 +112,16 @@ class _GhSearchScreenState extends State<GhSearchScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildInput() {
|
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) {
|
switch (Provider.of<ThemeModel>(context).theme) {
|
||||||
case AppThemeType.cupertino:
|
case AppThemeType.cupertino:
|
||||||
return Container(
|
return Container(
|
||||||
color: Colors.white,
|
color: color,
|
||||||
child: CupertinoTextField(
|
child: CupertinoTextField(
|
||||||
prefix: Row(
|
prefix: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
Loading…
Reference in New Issue
Block a user