Flattern -Umriss -Taste -Overlay

// OutlineButton is deprecated. Use OutlinedButton in place (notice the -d)
OutlinedButton(
   style: ButtonStyle(
       overlayColor: MaterialStateProperty.resolveWith(
            (state) => Colors.red)),
   child: Text('Fermer'),
   onPressed: () {
       Navigator.of(context).pop();
   },
Joyful Code