Skip to content

Commit 7968574

Browse files
committed
🎨 [Design] Improved the Lecture Selector to improve usability.
1 parent 24ca560 commit 7968574

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

lib/design_system.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
import 'dart:ui';
2+
3+
import 'package:flutter/material.dart';
4+
15
class Insets {
26
static const double small = 4.0;
37
static const double medium = 8.0;
48
static const double large = 12.0;
59
static const double xtraLarge = 16.0;
610
}
11+
12+
// TODO: Replace by a proper Theme
13+
class FlashcardAppColors {
14+
static const Color green = Colors.green;
15+
}

lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class MyApp extends StatelessWidget {
1212
@override
1313
Widget build(BuildContext context) {
1414
return MaterialApp(
15+
debugShowCheckedModeBanner: false,
1516
title: 'Flutter Demo',
1617
theme: ThemeData(
1718
primarySwatch: Colors.blue,

lib/ui/screen/lesson_selector_screen.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ class _LessonSelectorScreenState extends State<LessonSelectorScreen> {
3737
slivers: [
3838
for (var lectureFolder in possibleLectureFolders) ...[
3939
SliverAppBar(
40-
title: Text(lectureFolder.name),
40+
title: Text(
41+
lectureFolder.name,
42+
textAlign: TextAlign.left,
43+
style: const TextStyle(color: Colors.black),
44+
),
45+
centerTitle: false,
46+
backgroundColor: Colors.white,
47+
forceElevated: true,
4148
),
4249
SliverList(
4350
delegate: SliverChildBuilderDelegate((context, index) {

0 commit comments

Comments
 (0)