Want to access all of our courses? (30 h 09 min)
You also get:
Already a member? Login here
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 }, ), ], ), ),
And looks like u can avoid that by using mainAxisSize as well :)
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.
Your feedback has been received. We truly appreciate you taking the time to help us improve.
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 }, ), ], ), ),
And looks like u can avoid that by using mainAxisSize as well :)