refactor: update navigation to use push/pop and add conditional dashboard redirection for agents

This commit is contained in:
pradeepkumar
2026-03-31 19:36:30 +05:30
parent 548c822f89
commit 8a982bdf3d
4 changed files with 22 additions and 7 deletions

View File

@@ -847,7 +847,9 @@ class AboutScreen extends ConsumerWidget {
),
alignment: Alignment.center,
child: Text(
cta.buttonText,
(ref.read(authProvider).user?.role == 'AGENT')
? 'Go to Dashboard'
: cta.buttonText,
style: const TextStyle(
fontFamily: 'Fractul',
fontSize: 16,