configurable_expansion_tile 0.0.2 copy "configurable_expansion_tile: ^0.0.2" to clipboard
configurable_expansion_tile: ^0.0.2 copied to clipboard

outdated

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

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 animation duration, among others.

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

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"))),
      children: [
        Row(
          children: <Widget>[Text("CHILD 1")],
        ),
        // + more params, see example !!
      ],
    );
  }
}

Example #

View the Flutter app in the example directory.

Screenshot #

Tile Collapsed

Tile Expanded

Contributors #

65
likes
40
pub points
88%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on configurable_expansion_tile