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

outdated

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'),
    ))
57
likes
0
pub points
94%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on expansion_widget