Skip to content

Dismissible and implicitly_animated_reorderable_list #21

@giorgio79

Description

@giorgio79

Just tried wrapping the Animated Item in Dismissible, but getting an error https://stackoverflow.com/questions/55792521/how-to-fix-a-dismissed-dismissible-widget-is-still-part-of-the-tree-error-in

will try to get a full example going...

PS It looks like the animation is carried out twice, once by Dismissible, and then by Implicitly_animated_reorderable_list. Perhaps need to override somehow the removedItemBuilder to avoid animation if Dismissible was used...

PS2 Looks like the example uses the Flutter Slideable package. Gonna check it out. https://github.com/wwwdata/implicitly_animated_reorderable_list/blob/479c09211e5b02093e294ca7c573f98f43c62124/example/lib/ui/lang_page.dart

itemBuilder: (context, animation, item, index) {
// Specifiy a transition to be used by the ImplicitlyAnimatedList.
// See the Transitions section on how to import this transition.
return Dismissible(
...
child: SizeFadeTransition(
sizeFraction: 0.7,
curve: Curves.easeInOut,
animation: animation,
child: Text(item.name),
);
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions