Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chayanforyou/expandable-list-flutter
Expandable List with Add/Delete Functionality in Flutter
https://github.com/chayanforyou/expandable-list-flutter
expandable flutter listview showmoreoptions showmoretextview
Last synced: about 2 months ago
JSON representation
Expandable List with Add/Delete Functionality in Flutter
- Host: GitHub
- URL: https://github.com/chayanforyou/expandable-list-flutter
- Owner: chayanforyou
- License: mit
- Created: 2024-08-11T09:32:41.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-11T09:43:42.000Z (5 months ago)
- Last Synced: 2024-08-20T14:26:07.541Z (5 months ago)
- Topics: expandable, flutter, listview, showmoreoptions, showmoretextview
- Language: C++
- Homepage:
- Size: 265 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Expandable List with Add/Delete Functionality in Flutter
This Flutter project demonstrates how to create an expandable list that initially displays a limited number of items, with the option to show more or less using a toggle button. Additionally, it includes functionality for adding new items to the list and deleting individual items.
## Features
- **Expandable List**: The list shows a specified number of items by default, with the option to show the entire list or collapse it.
- **Add New Item**: Add new items to the list dynamically using an "Add" (+) button.
- **Delete Item**: Each list item has a delete button, allowing the user to remove items individually.
- **Toggle View**: A "Show more" button appears when there are more items than initially shown. It toggles to "Show less" when the full list is displayed.## Demonstration
https://github.com/user-attachments/assets/301ccff9-e520-4213-8184-6287e37a7f62
## Customization
- **Change Initial Display Count**: Modify the `itemCount` variable to change how many items are shown by default.
- **Styling**: Customize the appearance of the buttons and list items by modifying the widgets.## Contributing
Contributions are welcome! Please fork this repository, make your changes, and submit a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.