different opacities for the background of serach
This commit is contained in:
parent
19c714266e
commit
acd011a3f7
|
@ -357,6 +357,10 @@ extension CustomColorScheme on ColorScheme {
|
|||
Color get searchResultsCountTextColor => brightness == Brightness.light
|
||||
? const Color.fromRGBO(80, 80, 80, 1)
|
||||
: const Color.fromRGBO(150, 150, 150, 1);
|
||||
|
||||
Color get searchResultsBackgroundColor => brightness == Brightness.light
|
||||
? Colors.black.withOpacity(0.32)
|
||||
: Colors.black.withOpacity(0.12);
|
||||
}
|
||||
|
||||
OutlinedButtonThemeData buildOutlinedButtonThemeData({
|
||||
|
|
|
@ -62,7 +62,7 @@ class _SearchWidgetState extends State<SearchWidget> {
|
|||
Navigator.pop(context);
|
||||
},
|
||||
child: Container(
|
||||
color: Colors.black.withOpacity(0.32),
|
||||
color: Theme.of(context).colorScheme.searchResultsBackgroundColor,
|
||||
child: SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
|
|
Loading…
Reference in a new issue