Just move the items which you want to delete onto the trash can, now they've been deleted.
App Display |
---|
Removable(
width: 400.0,
height: 400.0,
actionAlignment: Alignment.center,
dismissed: (index) => _showSnackBar(index),
actionDelegate: RemovableActionBuilderDelegate(
actionCount: moviesList.length,
builder: (context, index) {
return Container(
width: 200.0,
height: 200.0,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20.0),
),
child: ClipRRect(
borderRadius: BorderRadius.circular(20.0),
child: Image.asset(
moviesList[index].imgUrl,
fit: BoxFit.cover,
),
),
);
},
),
),
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.