I want to reduce the height of snackbar which I used by Getx. As, title and message are compulsory to put, If I leave them as empty string, a blank space is shown. How Can I reduce that, I tried using Wrap, but it didn't worked. I just want to show a single line in snackbar. Can someone please help me?
CodePudding user response:
You can change the width of the snack with maxWidth argument but there is no option for height. And the message field is required in library.
You can use:
Get.rawSnackbar(message: "Message")
It have only one required argument message and it will show in only one line.That's how the rawSnackbar will display.
CodePudding user response:
You can change padding property
Get.snackbar("title", "message",padding:EdgeInsets.all(0));