refactor: update navigation to use push/pop and add conditional dashboard redirection for agents
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user