|
|
|
|
@ -57,7 +57,7 @@ class AppDrawer extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
8.height,
|
|
|
|
|
userProvider.user.username.heading3(context).custom(fontWeight: FontWeight.w600),
|
|
|
|
|
(userProvider.user?.username ?? "").heading3(context).custom(fontWeight: FontWeight.w600),
|
|
|
|
|
if ((userProvider.user?.email ?? "").isNotEmpty) (userProvider.user?.email).heading6(context).custom(color: context.isDark ? AppColor.neutral10 : AppColor.neutral20),
|
|
|
|
|
18.height,
|
|
|
|
|
1.divider,
|
|
|
|
|
@ -91,7 +91,7 @@ class AppDrawer extends StatelessWidget {
|
|
|
|
|
context: context,
|
|
|
|
|
builder: (_) => AAlertDialog(title: context.translation.signOut, content: context.translation.logoutAlert),
|
|
|
|
|
);
|
|
|
|
|
if (result) {
|
|
|
|
|
if (result ?? false) {
|
|
|
|
|
settingProvider.resetSettings();
|
|
|
|
|
userProvider.reset();
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
|