Tiny refactors

This commit is contained in:
Miroslav Mazel
2023-12-14 16:17:26 +01:00
parent 6497ae03ee
commit 13eaa0d5fd
2 changed files with 1 additions and 2 deletions

View File

@ -58,7 +58,6 @@ enum FilterPreset {
String display(BuildContext context, int defaultFilterDays) {
switch (this) {
//TODO make translatable
case FilterPreset.thisWeek:
return L10N.of(context).tr.thisWeek;
case FilterPreset.thisMonth:

View File

@ -127,7 +127,7 @@ class ThemeUtil {
dividerTheme:
DividerThemeData(color: colors.onBackground.withAlpha(31)),
floatingActionButtonTheme: FloatingActionButtonThemeData(
shape: StadiumBorder(),
shape: const StadiumBorder(),
backgroundColor: colors.primary,
foregroundColor: colors.onPrimary),
textButtonTheme: TextButtonThemeData(