📱 Fix attachment list responsive issue

This commit is contained in:
2024-12-02 22:42:31 +08:00
parent 7a617a4f8c
commit a70092c6f4
6 changed files with 135 additions and 107 deletions

View File

@ -157,7 +157,14 @@ class _UnauthorizedAccountScreen extends StatelessWidget {
leading: const Icon(Symbols.login),
trailing: const Icon(Symbols.chevron_right),
onTap: () {
GoRouter.of(context).pushNamed('authLogin');
GoRouter.of(context).pushNamed('authLogin').then((value) {
if (value == true && context.mounted) {
final ua = context.read<UserProvider>();
context.showSnackbar('loginSuccess'.tr(args: [
'@${ua.user?.name} (${ua.user?.nick})',
]));
}
});
},
),
ListTile(