sliver_expandable

Creator: coderz1093

Last updated:

0 purchases

sliver_expandable Image
sliver_expandable Images

Languages

Categories

Add to Cart

Description:

sliver expandable

Sliver Expandable #
Sliver Expandable lets expand and collapse any Sliver in Flutter.

Getting started #

Add it to your pubspec.yaml:

sliver_expandable: ^1.1.0
copied to clipboard

Use it:

AnimatedSliverExpandable(
expanded: _expanded,
headerBuilder: (context, animation) => ListTile(
onTap: () => setState(() => _expanded = !_expanded),
tileColor: Colors.amber,
title: const Text('Expandable'),
trailing: AnimatedBuilder(
animation: animation,
builder: (context, child) => Transform.rotate(
angle: (animation.value - 0.5) * pi,
child: child,
),
child: const Icon(Icons.chevron_left),
),
),
sliver: SliverList(
delegate: SliverChildBuilderDelegate(
(context, index) => ListTile(
title: Text('Expandable item no. $index'),
),
childCount: 5,
),
),
),
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.