Skip to content

Commit

Permalink
Minor style adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Xennis committed Jul 18, 2024
1 parent 8ab7b11 commit 597933a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion green_walking/lib/pages/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class _SearchPageState extends State<SearchPage> {
onSubmitted: _onSearchSubmitted,
),
),
Padding(padding: const EdgeInsets.fromLTRB(10, 0, 10, 0), child: _resultList(context)),
Padding(padding: const EdgeInsets.symmetric(horizontal: 10), child: _resultList(context)),
],
),
));
Expand Down
7 changes: 5 additions & 2 deletions green_walking/lib/widgets/search_result_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SearchResultCard extends StatelessWidget {

@override
Widget build(BuildContext context) {
final String subtitle = truncateString(place.placeName?.replaceFirst('${place.text ?? ''}, ', ''), 65) ?? '';
final String subtitle = truncateString(place.placeName?.replaceFirst('${place.text ?? ''}, ', ''), 70) ?? '';

return Card(
child: ListTile(
Expand Down Expand Up @@ -94,7 +94,10 @@ class _FooterRow extends StatelessWidget {
return Row(
children: [
const Icon(Icons.directions_run, size: 11.0),
Text(distanceString, style: const TextStyle(fontSize: 11.0)),
Padding(
padding: const EdgeInsets.only(left: 1.0),
child: Text(distanceString, style: const TextStyle(fontSize: 11.0)),
)
],
);
}
Expand Down

0 comments on commit 597933a

Please sign in to comment.