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.
- Host: GitHub
- URL: https://github.com/slothspunky77/dropdown-buttons
- Owner: SlothSpunky77
- Created: 2024-04-11T11:08:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-12T05:36:04.000Z (almost 2 years ago)
- Last Synced: 2025-07-21T19:55:05.522Z (11 months ago)
- Topics: flutter
- Language: Dart
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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