Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

custom error snackbar with icon flutter

ScaffoldMessenger.of(context).showSnackBar(SnackBar(
   backgroundColor: Colors.red[300],
     content: Row(
       children: [
         Icon(Icons.error),
         Text('Error Message Here')
      ],
   ),
));
 
PREVIOUS NEXT
Tagged: #custom #error #snackbar #icon #flutter
ADD COMMENT
Topic
Name
1+3 =