Closed WaseemAbbasi22 closed 8 months ago
final Widget listView = Material(
elevation:widget.suggestionsDecoration?.elevation?? 8,
borderRadius: widget.suggestionsDecoration?.borderRadius ??
BorderRadius.zero,
child: ListView.builder(
reverse: _suggestionDirection == SuggestionDirection.up,
padding: EdgeInsets.zero,
controller: _scrollController,
itemCount: snapshot.data!.length, wrap listview with material and also need to remove "ClipRRect"
return Positioned(
left: offset.dx,
width: textFieldsize.width,
child: CompositedTransformFollower(
offset: widget.offset ?? yOffset,
link: _layerLink,
child: ClipRRect(
borderRadius: widget.suggestionsDecoration?.borderRadius ??
BorderRadius.zero,
child: Material(
child: _suggestionsBuilder(),
),
)),
);
//replace with this
return Positioned(
left: offset.dx,
width: textFieldsize.width,
child: CompositedTransformFollower(
offset: widget.offset ?? yOffset,
link: _layerLink,
child: _suggestionsBuilder()),
);
add elevation parameter to the suggestion decoration
this will fix the issue
Hi @WaseemAbbasi22, Thanks for filing the issue, elevation is required I will get this out ASAP.
Bumping down the priority of this doesn't look straightforward to me. Also, this is not really a show-stopper so the package should work as intended. I'll come back to this issue soon.
Thanks for such awesome package i just want a small improvement with the suggestion decoration i want elevation same like normal dropdown buttons options has cool elevation you have the suggestionDecoration with boxshow property but it's not working properly if color is same with the screen background and also hide the suggestion when user scroll on the other part of screen or disable the scroll when suggestions are showing same like dropdown buttons
Describe the solution you'd like The most simple solution is to wrap the suggestions containers with Material and add elevation property and add a parameter of suggestionElevation to make it dynamic any one can set it according to the requirements
Describe alternatives you've considered alternate solution would be adding a card instead of container
Additional context
i want this to look like this