GetMaterialApp( home: Scaffold( appBar: AppBar(title: Text('Snackbar')), body: Center( child: ElevatedButton( onPressed: () { Get.defaultDialog(); }, child: Text('Button')), ) ) );