Answers for "flutter get.snackbar"

13

flutter snackbar

ScaffoldMessenger.of(context).showSnackBar(SnackBar(
                content: Text("Your Text"),
                duration: Duration(milliseconds: 300),
              ));
Posted by: Guest on July-08-2021
1

flutter getx snackbar

GetMaterialApp( 
        home: Scaffold(
          appBar: AppBar(title: Text('Snackbar')),
          body: Center(
              child: ElevatedButton(
                  onPressed: () {
                    Get.snackbar('snackbar title','snackbar message');
                  },
                  child: Text('Button')),
          )
        )
      );
Posted by: Guest on September-17-2021
3

snackbar flutter

ScaffoldMessenger.of(context).showSnackBar(
          SnackBar(
            duration: const Duration(milliseconds: 5000), 
            content: const Text('Awesome Snackbar!'),
          ),
        );
Posted by: Guest on November-17-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language