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