Answers for "flutter best toaster package"

9

toast flutter

# add this line to your dependencies
fluttertoast: ^7.1.1

Fluttertoast.showToast(
        msg: "This is Center Short Toast",
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIosWeb: 1,
        backgroundColor: Colors.red,
        textColor: Colors.white,
        fontSize: 16.0
    );
Posted by: Guest on July-31-2020
2

toast in flutter

Scaffold.of(context).showSnackBar(SnackBar(
      content: Text("Sending Message"),
    ));
Posted by: Guest on October-09-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language