Skip to content

Commit f1d2f37

Browse files
committed
fix: search page query bar layout issues
1 parent 98682e4 commit f1d2f37

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/pages/search_page/search_page_map.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class _SearchPageMapState extends ConsumerState<SearchPageMap> {
157157
),
158158
Padding(
159159
padding: EdgeInsets.only(
160-
top: MediaQuery.of(context).padding.top + kToolbarHeight * 2,
160+
top: MediaQuery.of(context).padding.top + kToolbarHeight * 2 - 16.0,
161161
left: 16.0,
162162
right: 16.0,
163163
),
@@ -182,8 +182,8 @@ class _SearchPageMapState extends ConsumerState<SearchPageMap> {
182182
borderRadius: const BorderRadius.vertical(
183183
bottom: Radius.circular(8.0)),
184184
child: Padding(
185-
padding: const EdgeInsets.symmetric(
186-
vertical: 8.0, horizontal: 12.0),
185+
padding: const EdgeInsetsDirectional.only(
186+
top: 24.0, bottom: 8.0, start: 12.0, end: 12.0),
187187
child: Row(
188188
children: [
189189
Icon(Icons.info_outline_rounded,

lib/widgets/card_app_bar.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class CardAppBar extends StatelessWidget {
2020
Widget build(BuildContext context) {
2121
return Card(
2222
elevation: 0,
23+
margin: EdgeInsets.zero,
2324
color: Theme.of(context).colorScheme.surfaceBright,
2425
clipBehavior: Clip.antiAlias,
2526
shape: Theme.of(context).cardTheme.shape,

0 commit comments

Comments
 (0)