Home > Software design >  any reasons why the snackbar isn't working
any reasons why the snackbar isn't working

Time:04-26

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

CodePudding user response:

You didn't post the full code but try changing the MaterialApp() widget to GetMaterialApp() widget.

CodePudding user response:

Please try changing the Main File In MaterialApp() widget to GetMaterialApp() widget.

  • Related