From 2b09db6623412cd3637109c01e47cac68ea0fe92 Mon Sep 17 00:00:00 2001 From: shreyas1599 Date: Sun, 9 Feb 2020 19:43:48 +0530 Subject: [PATCH] fix white edge color search bar on dark theme --- lib/screens/gh_search.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/screens/gh_search.dart b/lib/screens/gh_search.dart index 9227cac..2f8324a 100644 --- a/lib/screens/gh_search.dart +++ b/lib/screens/gh_search.dart @@ -112,10 +112,16 @@ class _GhSearchScreenState extends State { } Widget _buildInput() { + final theme = Provider.of(context); + final brightnessType = theme.brighnessValue; + var color = Colors.black; + if(brightnessType == AppBrightnessType.light) { + color = Colors.white; + } switch (Provider.of(context).theme) { case AppThemeType.cupertino: return Container( - color: Colors.white, + color: color, child: CupertinoTextField( prefix: Row( children: [