chore: Switch from bottoast to flushbar
This commit is contained in:
parent
4cc4800035
commit
e621a83406
15 changed files with 79 additions and 44 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:bot_toast/bot_toast.dart';
|
||||
import 'package:flushbar/flushbar_helper.dart';
|
||||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
|
@ -169,10 +169,12 @@ class SimpleDialogs {
|
|||
onAdditionalAuth != null) {
|
||||
return await tryRequestWithErrorToast(onAdditionalAuth(exception));
|
||||
} else {
|
||||
BotToast.showText(text: exception.errorMessage);
|
||||
await FlushbarHelper.createError(message: exception.errorMessage)
|
||||
.show(context);
|
||||
}
|
||||
} catch (exception) {
|
||||
BotToast.showText(text: exception.toString());
|
||||
await FlushbarHelper.createError(message: exception.toString())
|
||||
.show(context);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue