From 51a8c4ea58ab95ff732949868502acd66553537c Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Tue, 18 Nov 2025 21:42:17 +0100 Subject: [PATCH] Replace `MaterialStateProperty` with `WidgetStateProperty` in `CustomSearchBar` --- lib/presentation/widgets/custom_search_bar.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/presentation/widgets/custom_search_bar.dart b/lib/presentation/widgets/custom_search_bar.dart index d0f66e8..b482efb 100644 --- a/lib/presentation/widgets/custom_search_bar.dart +++ b/lib/presentation/widgets/custom_search_bar.dart @@ -23,14 +23,14 @@ class CustomSearchBar extends StatelessWidget { constraints ?? const BoxConstraints(maxHeight: 45, minHeight: 45), hintText: hintText, onChanged: onChanged, - hintStyle: MaterialStateProperty.all(const TextStyle(fontSize: 16)), + hintStyle: WidgetStateProperty.all(const TextStyle(fontSize: 16)), leading: const Icon(Icons.search), - backgroundColor: MaterialStateProperty.all(CustomTheme.boxColor), - side: MaterialStateProperty.all(BorderSide(color: CustomTheme.boxBorder)), - shape: MaterialStateProperty.all( + backgroundColor: WidgetStateProperty.all(CustomTheme.boxColor), + side: WidgetStateProperty.all(BorderSide(color: CustomTheme.boxBorder)), + shape: WidgetStateProperty.all( RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), ), - elevation: MaterialStateProperty.all(0), + elevation: WidgetStateProperty.all(0), ); } }