different opacities for the background of serach

This commit is contained in:
ashilkn 2022-08-20 15:59:29 +05:30
parent 19c714266e
commit acd011a3f7
2 changed files with 5 additions and 1 deletions

View file

@ -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({

View file

@ -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),