'any reasons why the snackbar isn't working
ElevatedButton(
onPressed: () {
Get.snackbar(
'app',
'app',
snackPosition: SnackPosition.BOTTOM,
titleText: const Text('another'),
messageText: const Text('Another mssg'),
);
},
child: const Text('Booking Calender'),
),
any reason why snackbar is not working
Solution 1:[1]
You didn't post the full code but try changing the MaterialApp() widget to GetMaterialApp() widget.
Solution 2:[2]
Please try changing the Main File In MaterialApp() widget to GetMaterialApp() widget.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Enviro Apps |
| Solution 2 | InFicial Infotech |
