Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Nov 7, 2023
1 parent 6ce47c0 commit f10e0e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
6 changes: 1 addition & 5 deletions lib/src/helpers/logs/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,7 @@ class _ExpansionTileState extends State<_ExpansionTile>
children: [
header,
ClipRect(
child: Align(
alignment: Alignment.center,
heightFactor: _heightFactor.value,
child: child,
),
child: Center(heightFactor: _heightFactor.value, child: child),
),
],
),
Expand Down
13 changes: 5 additions & 8 deletions lib/src/helpers/media_override.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,11 @@ class _MediaOverrideDebugHelperState extends State<MediaOverrideDebugHelper> {
}

String _themeModeToString(ThemeMode themeMode) {
switch (themeMode) {
case ThemeMode.system:
return 'System';
case ThemeMode.light:
return 'Light';
case ThemeMode.dark:
return 'Dark';
}
return switch (themeMode) {
ThemeMode.system => 'System',
ThemeMode.light => 'Light',
ThemeMode.dark => 'Dark',
};
}

Locale? locale;
Expand Down

0 comments on commit f10e0e0

Please sign in to comment.