mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 16:46:51 +08:00
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:
@ -2,8 +2,6 @@ import 'package:fimber/fimber.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:package_info/package_info.dart';
|
import 'package:package_info/package_info.dart';
|
||||||
|
|
||||||
import 'package:flushbar/flushbar.dart';
|
|
||||||
|
|
||||||
import 'app.dart';
|
import 'app.dart';
|
||||||
import 'core/note.dart';
|
import 'core/note.dart';
|
||||||
import 'state_container.dart';
|
import 'state_container.dart';
|
||||||
@ -38,8 +36,6 @@ SnackBar buildUndoDeleteSnackbar(BuildContext context, Note deletedNote) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void showSnackbar(BuildContext context, String message) {
|
void showSnackbar(BuildContext context, String message) {
|
||||||
Flushbar(
|
var snackBar = SnackBar(content: Text(message));
|
||||||
message: message,
|
Scaffold.of(context).showSnackBar(snackBar);
|
||||||
duration: const Duration(seconds: 3),
|
|
||||||
).show(context);
|
|
||||||
}
|
}
|
||||||
|
@ -155,13 +155,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "5.0.9"
|
version: "5.0.9"
|
||||||
flushbar:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: flushbar
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.9.1"
|
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
|
@ -26,7 +26,6 @@ dependencies:
|
|||||||
auto_size_text: ^2.0.1
|
auto_size_text: ^2.0.1
|
||||||
fimber: ^0.3.0
|
fimber: ^0.3.0
|
||||||
dynamic_theme: ^1.0.0
|
dynamic_theme: ^1.0.0
|
||||||
flushbar: ^1.9.0
|
|
||||||
flutter_staggered_grid_view: ^0.3.0
|
flutter_staggered_grid_view: ^0.3.0
|
||||||
page_transition: "^1.1.5"
|
page_transition: "^1.1.5"
|
||||||
provider: ^3.2.0
|
provider: ^3.2.0
|
||||||
|
Reference in New Issue
Block a user