Home > OS >  Flutter todo add list
Flutter todo add list

Time:07-27

I'm new to Flutter and I'm making a todo app. I have used alertdialog in the application and I want to add a widget that can be managed with tiles in a list view with a button, just like in the picture, how can I do this?

enter image description here [enter image description hereuse below code in dialogbox

 showDialog<String>(
    context: context,
    builder: (BuildContext context) => AlertDialog(
      title: const Text('AlertDialog Title'),
      content: const Text('AlertDialog description'),
      actions: <Widget>[
        TextButton(
          onPressed: () => Navigator.pop(context, 'Cancel'),
          child: const Text('Cancel'),
        ),
        IconButton(
                  onPressed: (){},
                  icon: const Icon(Icons.save),)
      ],
    ),
  ),

make use of IconButton Widget to get save icon

  • Related