configurable_expansion_tile 1.0.0

  • Example
  • Installing
  • Versions
  • 93

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

Example #

View the Flutter app in the example directory.

Screenshot #

Tile Collapsed

Tile Expanded

Contributors #

[1.0.0] - Nov.19 2018

  • Configurable animation tweens

[0.0.2] - Nov.18 2018

  • Example added and Documentation update

[0.0.1] - Nov.18 2018

  • Initial Release. Customizable header widgets, colours, and preceding/following dropdown widgets


import 'package:flutter/material.dart';
import 'package:configurable_expansion_tile/configurable_expansion_tile.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Configurable Expansion Tile Demo',
      theme: ThemeData(
      home: MyHomePage(),

class MyHomePage extends StatefulWidget {
  _MyHomePageState createState() => _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Configurable Expansion Tile Demo'),
      body: Center(
        child: Column(
          children: <Widget>[
              animatedWidgetFollowingHeader: const Icon(
                color: const Color(0xFF707070),
                  Flexible(child: Center(child: Text("A Header Changed"))),
              header: Container(
                  color: Colors.transparent,
                  child: Center(child: Text("A Header"))),
              headerBackgroundColorStart: Colors.grey,
              expandedBackgroundColor: Colors.amber,
              headerBackgroundColorEnd: Colors.teal,
              children: [
                  children: <Widget>[Text("CHILD 1")],
                  children: <Widget>[Text("CHILD 2")],

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  configurable_expansion_tile: ^1.0.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:configurable_expansion_tile/configurable_expansion_tile.dart';
Version Uploaded Documentation Archive
1.0.0 Nov 20, 2018 Go to the documentation of configurable_expansion_tile 1.0.0 Download configurable_expansion_tile 1.0.0 archive
0.0.2 Nov 19, 2018 Go to the documentation of configurable_expansion_tile 0.0.2 Download configurable_expansion_tile 0.0.2 archive
0.0.1 Nov 18, 2018 Go to the documentation of configurable_expansion_tile 0.0.1 Download configurable_expansion_tile 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jun 25, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance issues and suggestions

Support latest dependencies. (-5 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies