diff --git a/CHANGELOG.md b/CHANGELOG.md index c8b69f983..24f267d94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed: +- Habits search field style + +## [0.8.385] - 2023-06-22 ### Changed - Delete icon style - Start new tag dialog with search field content diff --git a/lib/widgets/habits/habits_search.dart b/lib/widgets/habits/habits_search.dart index 47036b695..3275cb0b1 100644 --- a/lib/widgets/habits/habits_search.dart +++ b/lib/widgets/habits/habits_search.dart @@ -21,29 +21,34 @@ class HabitsSearchWidget extends StatelessWidget { margin: const EdgeInsets.symmetric(horizontal: 40), height: 50, padding: const EdgeInsets.symmetric(horizontal: 10), - child: SearchBar( - controller: controller, - leading: const Padding( - padding: EdgeInsets.only(left: 8), - child: Icon(Icons.search), + child: Theme( + data: Theme.of(context).copyWith( + inputDecorationTheme: const InputDecorationTheme(), ), - trailing: [ - Visibility( - visible: cubit.state.searchString.isNotEmpty, - child: GestureDetector( - child: const Padding( - padding: EdgeInsets.only(right: 8), - child: Icon(Icons.close_rounded), + child: SearchBar( + controller: controller, + leading: const Padding( + padding: EdgeInsets.only(left: 8), + child: Icon(Icons.search), + ), + trailing: [ + Visibility( + visible: cubit.state.searchString.isNotEmpty, + child: GestureDetector( + child: const Padding( + padding: EdgeInsets.only(right: 8), + child: Icon(Icons.close_rounded), + ), + onTap: () { + cubit.setSearchString(''); + controller.clear(); + FocusScope.of(context).requestFocus(FocusNode()); + }, ), - onTap: () { - cubit.setSearchString(''); - controller.clear(); - FocusScope.of(context).requestFocus(FocusNode()); - }, ), - ), - ], - onChanged: cubit.setSearchString, + ], + onChanged: cubit.setSearchString, + ), ), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index 8fc7e0414..c07706b06 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: lotti description: Achieve your goals and keep your data private with Lotti. publish_to: 'none' -version: 0.9.385+2272 +version: 0.9.386+2273 msix_config: display_name: LottiApp