expansion_widget 0.0.1-nullsafety.0
expansion_widget: ^0.0.1-nullsafety.0 copied to clipboard

Flutter Android iOS Linux macOS web Windows

An edited version of Expansion Tile that allows you customize tile widget and animation.

expansion_widget #

An edited version of Expansion Tile that allows you customize tile widget and animation.

demo

Usage #

import 'package:expansion_widget/expansion_widget.dart';
import 'dart:math' as math;

ExpansionWidget(
    initiallyExpanded: true,
    titleBuilder: (double animationValue, _, bool isExpaned, toogleFunction) {
      return InkWell(
          onTap: () => toogleFunction(animated: true),
          child: Padding(
            padding: EdgeInsets.all(8),
            child: Row(
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Expanded(child: Text('Expansion Widget Title 1')),
                Transform.rotate(
                  angle: math.pi * animationValue / 2,
                  child: Icon(Icons.arrow_right, size: 40),
                  alignment: Alignment.center,
                )
              ],
            ),
          ));
    },
    content: Container(
      width: double.infinity,
      color: Colors.grey.shade100,
      padding: EdgeInsets.all(20),
      child: Text('Expaned Content'),
    ))
4
likes
110
pub points
29%
popularity

An edited version of Expansion Tile that allows you customize tile widget and animation.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

dat.descartes@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on expansion_widget