diff --git a/lib/src/widgets/autocomplete_entries_list_view.dart b/lib/src/widgets/autocomplete_entries_list_view.dart index 8274c34..c9e86f0 100644 --- a/lib/src/widgets/autocomplete_entries_list_view.dart +++ b/lib/src/widgets/autocomplete_entries_list_view.dart @@ -28,7 +28,7 @@ class AutocompleteEntriesListView extends StatelessWidget { case ConnectionState.waiting: return ListView( - padding: const EdgeInsets.symmetric(vertical: 30), + padding: const EdgeInsets.only(bottom: 60), itemExtent: autocompleteEntryCardHeight, children: const [ EquippedCard( diff --git a/lib/src/widgets/equipped_card.dart b/lib/src/widgets/equipped_card.dart index 4c17bb3..b55f82e 100644 --- a/lib/src/widgets/equipped_card.dart +++ b/lib/src/widgets/equipped_card.dart @@ -55,43 +55,17 @@ class _EquippedCardBody extends StatelessWidget { @override Widget build(BuildContext context) { - final theme = Theme.of(context); - - return InkWell( - onTap: onTap, - child: Card( - child: Stack( - alignment: Alignment.bottomCenter, - children: [ - Container( - height: height, - padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8), - child: Wrap( - clipBehavior: Clip.antiAlias, - children: children, - ), - ), - ClipRRect( - borderRadius: const BorderRadiusDirectional.only( - bottomStart: Radius.circular(12), - bottomEnd: Radius.circular(12), - ), - child: Container( - height: 32, - decoration: BoxDecoration( - gradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - theme.cardColor.withOpacity(0), - theme.cardColor, - ], - stops: const [0, 0.75], - ), - ), - ), - ), - ], + return Card( + child: InkWell( + borderRadius: const BorderRadius.all(Radius.circular(12)), + onTap: onTap, + child: Container( + height: height, + padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8), + child: Wrap( + clipBehavior: Clip.antiAlias, + children: children, + ), ), ), ); diff --git a/lib/src/widgets/search_bar_results.dart b/lib/src/widgets/search_bar_results.dart index ff026af..46e37ad 100644 --- a/lib/src/widgets/search_bar_results.dart +++ b/lib/src/widgets/search_bar_results.dart @@ -24,7 +24,7 @@ class _SearchBarResultsState extends State { void _onChanged(String value) { if (_debounce?.isActive ?? false) _debounce!.cancel(); _debounce = Timer(const Duration(milliseconds: 500), () { - _query.value = value; + _query.value = value.trim(); }); }