Skip to content
pubscout

toggle_list

0.3.1, released 3 years ago by binarybush.dev

An easy-to-use and highly customizable expandable list widget for your Flutter application.

WASM-ready
$ flutter pub add toggle_list
Source repository

What it does

Provides an expandable list widget and list items for Flutter applications. Allows users to toggle items to show or hide their content.

AI-written summary of version 0.3.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an expandable accordion or toggle list widget in your UI.
  • You want customizable titles and content for collapsible list sections.

Skip it when

  • You need complex state management libraries rather than UI widgets.
  • You require a package that is widely tested in production environments.

Strengths

  • Easy to use with a straightforward declarative API.
  • Customizable items and properties like inner padding and dividers.

Weaknesses

  • The package is explicitly noted as not yet widely tested.
  • Limited feature scope beyond expandable lists.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
ToggleList(
  children: [
    ToggleListItem(
      title: const Text('I am the first item'),
      content: const Padding(
        padding: EdgeInsets.all(20),
        child: Text('Hello there!'),
      ),
    ),
  ],
)

Alternatives

Packages that do the same job and could replace toggle_list.

Works with

Packages commonly used together with toggle_list: ones it builds on, ones built on it, and its own family.