upgrade packages

This commit is contained in:
tzw
2024-01-09 13:11:22 +06:30
parent cbd8ddad08
commit 3e1c61a9f6
32 changed files with 193 additions and 150 deletions

View File

@@ -31,7 +31,7 @@ class Profile extends StatefulWidget {
}
class _ProfileState extends State<Profile> {
GlobalKey key = GlobalKey();
GlobalKey<ScaffoldMessengerState> key = GlobalKey<ScaffoldMessengerState>();
bool _isLoading = false;
String? selectedLanguage;
TextEditingController bizNameController = new TextEditingController();
@@ -275,7 +275,8 @@ class _ProfileState extends State<Profile> {
}
_showToast(String title) {
final ScaffoldState scaffold = key.currentState as ScaffoldState;
final ScaffoldMessengerState scaffold =
key.currentState as ScaffoldMessengerState;
scaffold.showSnackBar(
SnackBar(
content: Text('copied "$title" data to clipboard'),
@@ -302,7 +303,8 @@ class _ProfileState extends State<Profile> {
});
try {
await context.read<MainModel>().signout();
} catch (e) {} finally {
} catch (e) {
} finally {
Future.delayed(Duration(seconds: 1), () {
if (mounted) {
setState(() {