Commit 55b12f30 authored by Tohap Maruli Pasaribu's avatar Tohap Maruli Pasaribu

SOLVED showSnackBar

parent fcf5541b
...@@ -253,14 +253,14 @@ class _Dashboard4State extends State<Dashboard4> { ...@@ -253,14 +253,14 @@ class _Dashboard4State extends State<Dashboard4> {
(isSuccess) { (isSuccess) {
if (isSuccess) { if (isSuccess) {
setState(() {}); setState(() {});
Scaffold.of(this ScaffoldMessenger.of(this
.context) .context)
.showSnackBar( .showSnackBar(
const SnackBar( const SnackBar(
content: content:
Text("Delete data success"))); Text("Delete data success")));
} else { } else {
Scaffold.of(this ScaffoldMessenger.of(this
.context) .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