An open API service indexing awesome lists of open source software.

https://github.com/slothspunky77/dropdown-buttons

This is a custom dropdown widget for you to use in your dart code.
https://github.com/slothspunky77/dropdown-buttons

flutter

Last synced: about 1 month ago
JSON representation

This is a custom dropdown widget for you to use in your dart code.

Awesome Lists containing this project

README

          

# Dropdown Buttons
Takes a list of strings as input to stitch a dropdown.
Optionally takes width parameter.
## Usage:
Modify the theme values in the .dart file.
Wrap the widget with a stack and call it in the end of the stack (so that the widget appears above everyhing else).
Import the file and use it as follows:
```
Stack(
children: [
...
Container(
padding: const EdgeInsets.only(top: 33), //used to position the widget
child: const Align( //used to position the widget
alignment: Alignment.topRight,
child: CustomDropdown(
options: ["Alpha", "Bravo", "Charlie"],
width: 150, //optional, defaults to 150
),
),
),
],
),
```
## Example:


### TODO:
- Add dropdown animation
- Modify the logic of the selected value so that it gets passed/stored better
- Rewrite the logic of stacked widgets