diff --git a/lib/src/features/weather/presentation/city_search_box.dart b/lib/src/features/weather/presentation/city_search_box.dart index feb5d80..4339b86 100644 --- a/lib/src/features/weather/presentation/city_search_box.dart +++ b/lib/src/features/weather/presentation/city_search_box.dart @@ -31,12 +31,12 @@ class _CitySearchRowState extends ConsumerState { Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(horizontal: 20.0), - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Expanded( - child: SizedBox( - height: 50, + child: SizedBox( + height: _radius * 2, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( child: TextField( controller: _searchController, textAlign: TextAlign.center, @@ -46,38 +46,38 @@ class _CitySearchRowState extends ConsumerState { filled: true, border: OutlineInputBorder( borderRadius: BorderRadius.only( - topLeft: Radius.circular(_radius), - bottomLeft: Radius.circular(_radius)), + topLeft: Radius.circular(_radius), + bottomLeft: Radius.circular(_radius), + ), ), ), onSubmitted: (value) => ref.read(cityProvider.notifier).state = value, ), ), - ), - InkWell( - child: Container( - height: 50, - alignment: Alignment.center, - decoration: const BoxDecoration( - color: AppColors.accentColor, - borderRadius: BorderRadius.only( - topRight: Radius.circular(_radius), - bottomRight: Radius.circular(_radius), + InkWell( + child: Container( + alignment: Alignment.center, + decoration: const BoxDecoration( + color: AppColors.accentColor, + borderRadius: BorderRadius.only( + topRight: Radius.circular(_radius), + bottomRight: Radius.circular(_radius), + ), + ), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 15.0), + child: Text('search', + style: Theme.of(context).textTheme.bodyLarge), ), ), - child: Padding( - padding: const EdgeInsets.symmetric(horizontal: 15.0), - child: Text('search', - style: Theme.of(context).textTheme.bodyLarge), - ), - ), - onTap: () { - FocusScope.of(context).unfocus(); - ref.read(cityProvider.notifier).state = _searchController.text; - }, - ) - ], + onTap: () { + FocusScope.of(context).unfocus(); + ref.read(cityProvider.notifier).state = _searchController.text; + }, + ) + ], + ), ), ); }