expansion_widget
0.1.0, released 3 years ago by an unverified publisher
An edited version of Expansion Tile that allows you customize tile widget and animation.
What it does
Provides a customizable expansion tile widget with configurable animations, builders, and state saving capabilities. It allows developers to define custom title widgets and control the expansion state programmatically or automatically.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a customized expansion tile with bespoke animations and custom title layouts.
- You want to automatically save and restore the expansion state of a tile.
Skip it when
- The standard Material ExpansionTile meets all your design and animation requirements without modifications.
Strengths
- Customizable tile widget builder and animation parameters
- Supports auto-saving and restoring expansion states
- Allows programmatic control via GlobalKey
Weaknesses
- Limited documentation beyond basic parameters and a single README example
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Not documented
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'),
))Alternatives
Packages that do the same job and could replace expansion_widget.
- custom_sliding_segmented_control
A custom sliding segmented control widget with flexible configuration and animations.
77Compare - expansion_tile_list
A customizable set of expansion tiles with styling, animations, and expansion control options.
62Compare - parallax_rain
Widget that renders customizable 3D rain effect
75Compare - configurable_expansion_tile_null_safety
A customizable ExpansionTile widget with configurable header, colors, and animations.
46Compare