Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

show snackbar flutter

final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();

void showInSnackBar(String value) {
    _scaffoldKey.currentState.showSnackBar(new SnackBar(content: new Text(value)));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #snackbar #flutter
ADD COMMENT
Topic
Name
2+7 =