Closed Eimji closed 2 years ago
will make a test then merge. thank you
Sorry, but you can forget my pull request. It introduced a regression bug when we want to dismiss a notification before displaying another one, e.g.
if (_flush != null && !_flush!.isDismissed()) {
await _flush!.dismiss();
}
_flush = Flushbar(
backgroundColor: Application.infoModalColor,
message: AppLocalizations.of(context)!.fileImported(success),
icon: const Icon(
MdiIcons.fileMoveOutline,
size: 28.0,
color: Color(0xff48dbfb),
),
duration: const Duration(seconds: 5),
margin: const EdgeInsets.all(8.0),
borderRadius: BorderRadius.circular(8),
onTap: (Flushbar f) {
f.dismiss(false);
},
)..show(context);
Anyway, I can reproduce the bug I found, it seems to be fixed by the last update of the package.
Hello,
I would like to submit a fix for the bug when disposing Flusbar
Thanks for keeping Flushbar alive.