Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

A dismissed Slidable widget is still part of the tree.

// add setState(() {}) on dismissibllePane
startActionPane: ActionPane(
                   key: UniqueKey(),
                   dismissible: DismissiblePane(onDismissed: () {
                     setState(() {
                      snapshot.data.removeAt(index);
                        });
                   }),
                     motion: const ScrollMotion(),
                     children: const [], 
                  ),
 
PREVIOUS NEXT
Tagged: #A #dismissed #Slidable #widget #part
ADD COMMENT
Topic
Name
1+2 =