Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter snackbar duration

ScaffoldMessenger.of(context).showSnackBar(
          SnackBar(
            duration: const Duration(milliseconds: 4000), // default 4s
            content: const Text('Awesome Snackbar!'),
          ),
        );
 
PREVIOUS NEXT
Tagged: #flutter #snackbar #duration
ADD COMMENT
Topic
Name
2+1 =