flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

it's allowed to make it just to swipe right without left : new panes

Open mustafa-707 opened this issue 4 years ago • 4 comments

Hello , i just would to ask if i can stop the startActionPane and allow the 'endActionPane' i tried to make ratio of expanding 0 but it not allowed to be 0 , i returned to version 0.6.0 that was allowed to make one direction slide

many thanks

mustafa-707 avatar Nov 22 '21 20:11 mustafa-707

You just have to not set startActionPane :-)

letsar avatar Nov 24 '21 16:11 letsar

but when i not set startActionPane or endActionPane it not slide at all

mustafa-707 avatar Nov 24 '21 19:11 mustafa-707

but when i not set startActionPane or endActionPane it not slide at all

When I don't set startActionPane , endActionPane not shows anything? I am using flutter_slidable 1.1.0

return Slidable(
        // Specify a key if the Slidable is dismissible.
        key: const ValueKey(0),
        // The end action pane is the one at the right or the bottom side.
        endActionPane: ActionPane(
          motion: ScrollMotion(),
          children: [
            SlidableAction(
              // An action can be bigger than the others.
              flex: 2,
              onPressed: (_) {},
              backgroundColor: Color(0xFF7BC043),
              foregroundColor: Colors.white,
              icon: Icons.archive,
              label: 'Archive',
            ),
            SlidableAction(
              onPressed: (_) {},
              backgroundColor: Color(0xFF0392CF),
              foregroundColor: Colors.white,
              icon: Icons.save,
              label: 'Save',
            ),
          ],
        ),

        // The child of the Slidable is what the user sees when the
        // component is not dragged.
        child: const ListTile(
            title: Text(
          'Slide me',
          style: TextStyle(fontSize: 25, color: Colors.red),
        )),
      );

ezgif com-gif-maker (1)

tazik561 avatar Dec 25 '21 08:12 tazik561

It seems to be fixed in the latest version. Can you retry?

letsar avatar Jul 10 '22 13:07 letsar