Skip to content

Instantly share code, notes, and snippets.

@letsar
Created August 24, 2018 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letsar/0c5712d1c43959f617acc333ce5e0263 to your computer and use it in GitHub Desktop.
Save letsar/0c5712d1c43959f617acc333ce5e0263 to your computer and use it in GitHub Desktop.
slidable_in_depth_05
// For the main actions we have to reverse the order if we want the last item at the bottom of the stack.
int displayIndex = showActions ? count - index - 1 : index;
return ctx.createPositioned(
position: animations[index].value,
extent: actionExtent,
child: actionDelegate.build(context, displayIndex,
actionsMoveAnimation, SlidableRenderingMode.slide),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment