Home > Mobile >  Flutter showsnackbar at top of the screen?
Flutter showsnackbar at top of the screen?

Time:07-02

how to show flutter snackbar at top of the screen ?

 ScaffoldMessenger.of(context).showSnackBar(snackBar(context,Strings.order_not_selected));

CodePudding user response:

You can use Getx library for it, you can customize it accordingly.

 Get.snackbar(
              "Title of Snackbar",
               "Message of SnackBar",
               icon: Icon(Icons.person, color: Colors.white),
               snackPosition: SnackPosition.TOP,
                 );
  • Related