Alteração do acesso às settings, mudança visual na interface de entrar numa turma
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import '../../../../core/services/auth_service.dart';
|
||||
import '../../../../core/theme/app_theme_extension.dart';
|
||||
import '../../../../core/routing/app_router.dart';
|
||||
import '../widgets/progress_hero_widget.dart';
|
||||
import '../widgets/quick_access_widget.dart';
|
||||
import '../widgets/student_classes_list_widget.dart';
|
||||
@@ -104,7 +105,7 @@ class _StudentDashboardPageState extends State<StudentDashboardPage> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Header with logout
|
||||
// Header with logout and settings
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
@@ -131,6 +132,13 @@ class _StudentDashboardPageState extends State<StudentDashboardPage> {
|
||||
],
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.settings, color: headerColor),
|
||||
onPressed: () {
|
||||
AppRouter.goToSettings(context);
|
||||
},
|
||||
tooltip: 'Configurações',
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.logout, color: headerColor),
|
||||
onPressed: () async {
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import '../../../../core/services/auth_service.dart';
|
||||
import '../../../../core/theme/app_theme_extension.dart';
|
||||
import '../../../../core/routing/app_router.dart';
|
||||
import '../widgets/teacher_hero_widget.dart';
|
||||
import '../widgets/teacher_quick_actions_widget.dart';
|
||||
import '../widgets/teacher_classes_list_widget.dart';
|
||||
@@ -100,7 +101,7 @@ class _TeacherDashboardPageState extends State<TeacherDashboardPage> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Header with logout
|
||||
// Header with logout and settings
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
@@ -127,6 +128,13 @@ class _TeacherDashboardPageState extends State<TeacherDashboardPage> {
|
||||
],
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.settings, color: headerColor),
|
||||
onPressed: () {
|
||||
AppRouter.goToSettings(context);
|
||||
},
|
||||
tooltip: 'Configurações',
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.logout, color: headerColor),
|
||||
onPressed: () async {
|
||||
|
||||
Reference in New Issue
Block a user