Remove Flushbar

With a FAB, flushbar's snackbar is just too difficult to press. We're
reverting to the classic Scaffold and making sure we're calling it with
the correct context.

https://github.com/AndreHaueisen/flushbar/issues/64
This commit is contained in:
Vishesh Handa
2020-02-09 16:05:08 +01:00
parent 937d12d5d8
commit 5ae288a3f6
3 changed files with 2 additions and 14 deletions

View File

@ -2,8 +2,6 @@ import 'package:fimber/fimber.dart';
import 'package:flutter/material.dart';
import 'package:package_info/package_info.dart';
import 'package:flushbar/flushbar.dart';
import 'app.dart';
import 'core/note.dart';
import 'state_container.dart';
@ -38,8 +36,6 @@ SnackBar buildUndoDeleteSnackbar(BuildContext context, Note deletedNote) {
}
void showSnackbar(BuildContext context, String message) {
Flushbar(
message: message,
duration: const Duration(seconds: 3),
).show(context);
var snackBar = SnackBar(content: Text(message));
Scaffold.of(context).showSnackBar(snackBar);
}