import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; class ProfilePage extends StatelessWidget { const ProfilePage({super.key}); @override Widget build(BuildContext context) { return PopScope( canPop: false, onPopInvoked: (didPop) { if (didPop) return; // Navigate back to dashboard instead of exiting app context.go('/student-dashboard'); }, child: Scaffold( backgroundColor: Theme.of(context).colorScheme.background, appBar: AppBar( title: const Text('Profile'), backgroundColor: Theme.of(context).colorScheme.surface, foregroundColor: Theme.of(context).colorScheme.onSurface, elevation: 0, ), body: Container( decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [ Theme.of(context).colorScheme.background, Theme.of(context).colorScheme.primary.withOpacity(0.1), Theme.of(context).colorScheme.secondary.withOpacity(0.05), Theme.of(context).colorScheme.background, ], ), ), ), ), ); } }