Skip to content

Commit

Permalink
feat(#691): improve search bar spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Feb 19, 2024
1 parent f9aad5d commit 988185c
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions app/lib/common/widgets/drug_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,26 @@ class DrugSearch extends HookWidget {
builder: (context, state) {
return Column(
children: [
Row(
children: [
Expanded(
child: CupertinoSearchTextField(
controller: searchController,
onChanged: (value) {
context.read<DrugListCubit>().search(query: value);
},
Padding(
padding: EdgeInsets.symmetric(horizontal: PharMeTheme.smallSpace),
child: Row(
children: [
Expanded(
child: CupertinoSearchTextField(
controller: searchController,
onChanged: (value) {
context.read<DrugListCubit>().search(query: value);
},
),
),
),
SizedBox(width: PharMeTheme.smallToMediumSpace),
TooltipIcon(useDrugClass
? context.l10n.search_page_tooltip_search
: context.l10n.search_page_tooltip_search_no_class
),
if (showFilter) buildFilter(context),
]
SizedBox(width: PharMeTheme.smallToMediumSpace),
TooltipIcon(useDrugClass
? context.l10n.search_page_tooltip_search
: context.l10n.search_page_tooltip_search_no_class
),
if (showFilter) buildFilter(context),
]
),
),
scrollList(
keepPosition: keepPosition,
Expand Down

0 comments on commit 988185c

Please sign in to comment.