https://github.com/binarybush/toggle_list
An easy-to-use and highly customizable expandable list widget for your Flutter application.
https://github.com/binarybush/toggle_list
dart flutter flutter-package flutter-widgets
Last synced: 3 months ago
JSON representation
An easy-to-use and highly customizable expandable list widget for your Flutter application.
- Host: GitHub
- URL: https://github.com/binarybush/toggle_list
- Owner: BinaryBush
- License: apache-2.0
- Created: 2022-01-25T11:00:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T19:45:03.000Z (over 1 year ago)
- Last Synced: 2025-03-24T12:21:44.878Z (3 months ago)
- Topics: dart, flutter, flutter-package, flutter-widgets
- Language: Dart
- Homepage:
- Size: 129 KB
- Stars: 5
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

An easy-to-use and highly customizable expandable list widget for your Flutter application.
  
> This package is not yet widely tested.
>
> Use it with caution and [file any potential issues you see](https://github.com/BinaryBush/toggle_list/issues/new/choose).
![]()
## Installation
### Via command line
```
flutter pub add toggle_list
```
### Manually
Add the following line to your pubspec.yaml file.
```yaml
dependencies:
toggle_list: ^0.3.1
```
Then either save the file or use the `flutter pub run` command.### Import
```dart
import 'package:toggle_list/toggle_list.dart';
```
## Usage
```dart
return Scaffold(
body: ToggleList(
children: [
ToggleListItem(
title: const Text('I am the first item'),
content: const Padding(
padding: EdgeInsets.all(20),
child: Text('Hello there!'),
),
),
ToggleListItem(
title: const Text('I am the second item'),
content: const Padding(
padding: EdgeInsets.all(20),
child: Text('I am delighted that you are here.'),
),
),
ToggleListItem(
title: const Text('I am the third item'),
content: const Padding(
padding: EdgeInsets.all(20),
child: Text('Have a wonderful day!'),
),
),
],
),
);
```For a more detailed use case, check out the [example directory](https://github.com/binarybush/toggle_list/tree/main/example).
## Contributing
Contributions of any kind are always welcome!As of now, we don't have a standardized way for contributions. For this reason, if you would like to help us with your coding, feel free to send an email to [[email protected]](mailto:[email protected]).
## Metadata
:green_book: [Documentation](https://pub.dev/documentation/toggle_list/latest/):email: [[email protected]](mailto:[email protected])
:bug: [Bug report](https://github.com/BinaryBush/toggle_list/issues/new?assignees=&labels=bug%2Ctriage&template=1_bug.yaml)
:zap: [Requesting features](https://github.com/BinaryBush/toggle_list/issues/new?assignees=&labels=new-feature&template=2_feature_request.yaml)
Every opened issue is very much appreciated!