Search packages, repositories and app categories

Package detailsv3.3.2

configurable_expansion_tile_null_safety

A Configurable Expansion Tile edited from the flutter material implementation that allows for customization

AndroidiOSWebmacOSWindowsLinux
30-day downloads
4.8K
Likes
26
Pub points
140

Install package

flutter pub add configurable_expansion_tile_null_safety

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A customizable ExpansionTile widget derived from Flutter's Material implementation, designed for enhanced flexibility. It supports null safety and allows developers to tailor the tile's appearance and behavior, including custom headers, icons, and animation controls. Ideal for creating collapsible content sections with unique styling or interactive elements. The package is compatible across all major platforms and extends the standard ExpansionTile with additional configuration options.

Use cases

  • Custom collapsible UI components
  • Dynamic content sections in forms
  • Interactive FAQ interfaces
  • Nested expandable lists
  • Accessible navigation panels

Key features

  • Fully null-safe
  • Extensible header customization
  • Configurable animation and icon behavior
  • Supports all Flutter platforms
  • Easy integration with existing widgets

Suitable for

  • Developers needing flexible expansion tiles
  • UI designers requiring visual control
  • Apps with complex expandable content
  • Cross-platform applications
  • Projects using modern Dart practices

Considerations

  • Requires understanding of Flutter widget tree
  • May increase bundle size slightly
  • Limited to material design conventions
  • Not suitable for non-expansion use cases
  • Depends on upstream Material changes

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

configurable_expansion_tile

A Configurable Expansion Tile edited from the flutter material implementation that allows for customization of the internal components. Includes providing colours, replacement widgets on expansion, and custom animations.

Tile animations still takes place (which are also configurable), and a widget can be set to precede and/or follow the provided header, which will rotate on expand/collapse of the tile.

Configure any or all parameters or leave default behaviour - header works out of the box.

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

configurable_expansion_tile: <latest_version>

Usage

import 'package:configurable_expansion_tile/configurable_expansion_tile.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return ConfigurableExpansionTile(
      headerExpanded: Flexible(child: Center(child: Text("A Header Changed"))),
      header: Container(child: Center(child: Text("A Header"))),
      childrenBody: Row(
        children: <Widget>[Text("CHILD 1")],
      ),
    );
  }
}

Example

View the Flutter app in the example directory.

Screenshot

Tile Collapsed

Tile Expanded

Contributors

Categories

Source repository

Projects using this package

No data available yet.