Skip to main content

Delete Category with Confirmation Dialog

Premium
7:08

The Full Lesson is Only for Premium Members

Want to access all of our courses? (30 h 09 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

RA
Rehan Azher ✓ Link copied!

Adding row to trail will throws an error, as it tried to occupy complete width. One may want to put training Row within a constrained box. Something like below:

ConstrainedBox( constraints: BoxConstraints(maxWidth: 100), child: Row( children: <Widget>[ IconButton( icon: const Icon(Icons.edit), onPressed: () { showModalBottomSheet( isScrollControlled: true, context: context, builder: (BuildContext context) { return CategoryEdit( category, provider.updateCategory); }); }, ), IconButton( icon: const Icon(Icons.delete), onPressed: () { // delete the category }, ), ], ), ),

RA
Rehan Azher ✓ Link copied!

And looks like u can avoid that by using mainAxisSize as well :)

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.