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,
);