quanht_auto_dropper 0.0.6 copy "quanht_auto_dropper: ^0.0.6" to clipboard
quanht_auto_dropper: ^0.0.6 copied to clipboard

AutoDropper adjusts dropdowns to open above or below the trigger, ensuring full visibility based on available space for a seamless user experience.

A lightweight library that intelligently adjusts dropdown positioning to ensure it remains fully visible by opening either above or below the trigger button based on available space.

Features v0.0.1 #

  • The AppAutoDropdown widget support data list for not enough space.
  • The parentScrollController this is ScrollController of screen when scroll auto close dropdown.
  • The DropItem class has replaced the DropListWidget class.
  • onSeleted has been replaced with onSeleted. The onSeleted callback is called whenever the selection changes in the dropdown, whether it is selected or deselected.

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Preview #

|| |

Usage #

Simple use #

If you want to control auto close dropdown when scroll need to add parentScrollController in widget parentScrollController is a scrollController of screen

TODO: Please check it to /example folder.

List dropitem need to convert like DropItem include name and id will required Inaddition, DropItem allow add flag prefix in to dropdown

  final DropItem listDrop = DropItem(name: '', id: -1);
 AppAutoDropdown(
    items: <DropItem>[],
    label: '$Label',
    hintText: '$Hint text',
    parentScrollController: scrollController,
    onSelected: (output){},
 ),
4
likes
150
points
35
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

AutoDropper adjusts dropdowns to open above or below the trigger, ensuring full visibility based on available space for a seamless user experience.

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on quanht_auto_dropper