chore: Small fixes

This commit is contained in:
PartyDonut 2025-08-01 20:41:21 +02:00
parent 8e4171be56
commit d421bb13e6
3 changed files with 9 additions and 15 deletions

View file

@ -1,4 +1,3 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
@ -28,13 +27,17 @@ class CrashScreen extends ConsumerWidget {
child: Column(
children: [
Row(
spacing: 8,
children: [
const CloseButton(),
Text(
"Error logs",
style: Theme.of(context).textTheme.titleLarge,
),
const Spacer(),
ElevatedButton(
onPressed: provider.clearLogs,
child: Text(context.localized.clear),
),
EnumBox(
current: selectedType == null ? context.localized.all : selectedType.name.capitalize(),
itemBuilder: (context) => [
@ -51,19 +54,11 @@ class CrashScreen extends ConsumerWidget {
),
)
],
)
),
const CloseButton(),
],
),
const Divider(),
if (kDebugMode)
Row(
children: [
ElevatedButton(
onPressed: provider.clearLogs,
child: const Text("Clear"),
),
],
),
if (crashLogs.isNotEmpty)
Flexible(
child: Card(

View file

@ -292,7 +292,6 @@ class _SideNavigationBarState extends ConsumerState<SideNavigationBar> {
}
},
),
if (AdaptiveLayout.of(context).inputDevice == InputDevice.pointer) const SizedBox(height: 16),
],
),
),

View file

@ -62,8 +62,8 @@ class _NavigationScaffoldState extends ConsumerState<NavigationScaffold> {
final paddingOf = mediaQuery.padding;
final viewPaddingOf = mediaQuery.viewPadding;
final bottomPadding = isDesktop || kIsWeb ? 0.0 : paddingOf.bottom;
final bottomViewPadding = isDesktop || kIsWeb ? 0.0 : viewPaddingOf.bottom;
final bottomPadding = isDesktop || kIsWeb ? 12.0 : paddingOf.bottom;
final bottomViewPadding = isDesktop || kIsWeb ? 12.0 : viewPaddingOf.bottom;
final isHomeScreen = currentIndex != -1;
return PopScope(