tx_dropdown_menu 1.0.0 copy "tx_dropdown_menu: ^1.0.0" to clipboard
tx_dropdown_menu: ^1.0.0 copied to clipboard

A flutter package with a custom drop-down menu that supports iOS and Android.

tx_dropdown_menu #

This is a Flutter custom powerful lightweight drop-down filter menu package, which supports iOS and Android.

Preview #

1、Add tx_dropdown_menu package #

Open the pubspec.yaml file

  tx_dropdown_menu: ^1.0.0

After adding, open Terminal and execute flutter packages get

2. Use #

TxDropDownMenuHeader #

Please note that these parameters are not mandatory. I write them out just to let you know the powerful customization function. In fact, only the first three parameters are required

TxDropdownMenuHeader(
  dropDownController: dropDownController,
  items: widget.items,
  onScrollToIndex: handleScrollToIndex,
  colorPrimary: widget.colorPrimary,
),

TxDropDownMenuView #

TxDropDownMenuView(
  dropDownController: dropDownController,
  currentIndexSelected: currentIndexSelected,
  controllerTitle: controllerTitle,
  items: widget.items,
  onScrollToIndex: handleScrollToIndex,
  controller: controller,
  actionGroup: widget.actionGroup,
  colorPrimary: widget.colorPrimary,
  viewHeight: widget.viewHeight,
),

Custom show/hide menu #

final TxDropDownMenuController dropDownController = TxDropDownMenuController();

//show menu
dropDownController.show(index);

//hide menu
dropDownController.hide();

//toggle menu
dropDownController.toggle();
3
likes
140
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package with a custom drop-down menu that supports iOS and Android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, scroll_to_index

More

Packages that depend on tx_dropdown_menu