Commit 52700c50 authored by Tohap Maruli Pasaribu's avatar Tohap Maruli Pasaribu

SOLVED showSnackBar

parent 0d71183e
...@@ -631,7 +631,7 @@ class _Dashboard4State extends State<Dashboard4> { ...@@ -631,7 +631,7 @@ class _Dashboard4State extends State<Dashboard4> {
(isSuccess) { (isSuccess) {
if (isSuccess) { if (isSuccess) {
setState(() {}); setState(() {});
Scaffold.of( ScaffoldMessenger.of(
this.context) this.context)
.showSnackBar( .showSnackBar(
const SnackBar( const SnackBar(
...@@ -640,7 +640,7 @@ class _Dashboard4State extends State<Dashboard4> { ...@@ -640,7 +640,7 @@ class _Dashboard4State extends State<Dashboard4> {
), ),
); );
} else { } else {
Scaffold.of( ScaffoldMessenger.of(
this.context) this.context)
.showSnackBar( .showSnackBar(
const SnackBar( const SnackBar(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment