From 4a8478c20db32fa3b1b732a3d6a6760f3975b4f2 Mon Sep 17 00:00:00 2001 From: AlexisDanlos <91090088+AlexisDanlos@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:26:24 +0100 Subject: [PATCH] fix: replace MaterialStateProperty with WidgetStateProperty in SearchBar --- dialer/lib/features/home/home_page.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dialer/lib/features/home/home_page.dart b/dialer/lib/features/home/home_page.dart index f16de1f..517aa97 100644 --- a/dialer/lib/features/home/home_page.dart +++ b/dialer/lib/features/home/home_page.dart @@ -83,7 +83,7 @@ class _MyHomePageState extends State builder: (BuildContext context, SearchController controller) { return SearchBar( controller: controller, - padding: MaterialStateProperty.all( + padding: WidgetStateProperty.all( const EdgeInsets.only( top: 6.0, bottom: 6.0, @@ -95,10 +95,10 @@ class _MyHomePageState extends State controller.openView(); _onSearchChanged(''); }, - backgroundColor: MaterialStateProperty.all( + backgroundColor: WidgetStateProperty.all( const Color.fromARGB(255, 30, 30, 30)), hintText: 'Search contacts', - hintStyle: MaterialStateProperty.all( + hintStyle: WidgetStateProperty.all( const TextStyle(color: Colors.grey, fontSize: 16.0), ), leading: const Icon( @@ -106,7 +106,7 @@ class _MyHomePageState extends State color: Colors.grey, size: 24.0, ), - shape: MaterialStateProperty.all( + shape: WidgetStateProperty.all( RoundedRectangleBorder( borderRadius: BorderRadius.circular(12.0), ),