Dark mode em upload pdf

This commit is contained in:
2026-05-18 23:05:33 +01:00
parent 7f12f3eb1f
commit 8043ee42fe
19 changed files with 77 additions and 73 deletions

View File

@@ -47,11 +47,9 @@ class _TeacherMaterialsPageState extends State<TeacherMaterialsPage> {
appBar: AppBar(
title: const Text(
'Materiais da Disciplina',
style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
style: TextStyle(fontWeight: FontWeight.bold),
),
backgroundColor: const Color(0xFF82C9BD),
elevation: 0,
iconTheme: const IconThemeData(color: Colors.white),
),
floatingActionButton: _isUploading
? FloatingActionButton.extended(
@@ -81,12 +79,17 @@ class _TeacherMaterialsPageState extends State<TeacherMaterialsPage> {
),
body: Container(
decoration: const BoxDecoration(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xFF82C9BD), Color(0xFFF8F9FA)],
stops: [0.0, 0.4],
colors: Theme.of(context).brightness == Brightness.dark
? [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.background,
]
: [const Color(0xFF82C9BD), const Color(0xFFF8F9FA)],
stops: const [0.0, 0.4],
),
),
child: SafeArea(
@@ -196,13 +199,14 @@ class _TeacherMaterialsPageState extends State<TeacherMaterialsPage> {
}
void _showUploadOptions() {
final cs = Theme.of(context).colorScheme;
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
builder: (context) => Container(
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
decoration: BoxDecoration(
color: cs.surface,
borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
),
child: SafeArea(
child: Padding(
@@ -216,7 +220,7 @@ class _TeacherMaterialsPageState extends State<TeacherMaterialsPage> {
width: 40,
height: 4,
decoration: BoxDecoration(
color: Colors.grey[300],
color: cs.onSurface.withOpacity(0.2),
borderRadius: BorderRadius.circular(2),
),
),

View File

@@ -154,7 +154,7 @@ class HelpPage extends StatelessWidget {
context: context,
question: 'Como contactar o suporte?',
answer:
'Pode contactar-nos através do email suporte@teachit.com.',
'Pode contactar-nos através do email suporte@learnit.com.',
),
],
),