1
0
forked from firka/firka

fix code styling

This commit is contained in:
2025-07-20 21:08:56 +02:00
parent 89959e87ae
commit f99ce3ee20
4 changed files with 10 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ class HomeGradesScreen extends StatelessAsyncWidget {
),
SizedBox(height: 16), // TODO: Add graphs here
// ...gradeCards,
Container(
SizedBox(
height: MediaQuery.of(context).size.height -
MediaQuery.of(context).padding.top -
230,

View File

@@ -83,7 +83,7 @@ class HomeGradesSubjectScreen extends StatelessAsyncWidget {
],
),
SizedBox(height: 16),
Container(
SizedBox(
height: MediaQuery.of(context).size.height -
MediaQuery.of(context).padding.top -
230,

View File

@@ -86,8 +86,9 @@ class _HomeMainScreen extends State<HomeMainScreen> {
var nextLesson = lessons!.getNextLesson(now);
int? lessonIndex;
if (currentLesson != null)
if (currentLesson != null) {
lessonIndex = lessons!.getLessonNo(currentLesson);
}
welcomeWidget = LessonBigWidget(
now, lessonIndex, currentLesson, prevLesson, nextLesson);

View File

@@ -19,13 +19,13 @@ class StartingSoonWidget extends StatelessWidget {
var min = diff.inMinutes % 60;
var sec = diff.inSeconds % 60;
var hour_txt = hour == 1
var hourTxt = hour == 1
? AppLocalizations.of(context)!.starting_hour
: AppLocalizations.of(context)!.starting_hour_plural;
var min_txt = hour == 1
var minTxt = hour == 1
? AppLocalizations.of(context)!.starting_min
: AppLocalizations.of(context)!.starting_min_plural;
var sec_txt = hour == 1
var secTxt = hour == 1
? AppLocalizations.of(context)!.starting_sec
: AppLocalizations.of(context)!.starting_sec_plural;
@@ -55,7 +55,7 @@ class StartingSoonWidget extends StatelessWidget {
.apply(color: appStyle.colors.textPrimary)),
SizedBox(width: 2),
Text(
hour_txt,
hourTxt,
style: appStyle.fonts.B_16R
.apply(color: appStyle.colors.textPrimary),
),
@@ -70,7 +70,7 @@ class StartingSoonWidget extends StatelessWidget {
.apply(color: appStyle.colors.textPrimary)),
SizedBox(width: 2),
Text(
min_txt,
minTxt,
style: appStyle.fonts.B_16R
.apply(color: appStyle.colors.textPrimary),
),
@@ -85,7 +85,7 @@ class StartingSoonWidget extends StatelessWidget {
.apply(color: appStyle.colors.textPrimary)),
SizedBox(width: 2),
Text(
sec_txt,
secTxt,
style: appStyle.fonts.B_16R
.apply(color: appStyle.colors.textPrimary),
),