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/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
@ -28,13 +27,17 @@ class CrashScreen extends ConsumerWidget {
child: Column( child: Column(
children: [ children: [
Row( Row(
spacing: 8,
children: [ children: [
const CloseButton(),
Text( Text(
"Error logs", "Error logs",
style: Theme.of(context).textTheme.titleLarge, style: Theme.of(context).textTheme.titleLarge,
), ),
const Spacer(), const Spacer(),
ElevatedButton(
onPressed: provider.clearLogs,
child: Text(context.localized.clear),
),
EnumBox( EnumBox(
current: selectedType == null ? context.localized.all : selectedType.name.capitalize(), current: selectedType == null ? context.localized.all : selectedType.name.capitalize(),
itemBuilder: (context) => [ itemBuilder: (context) => [
@ -51,19 +54,11 @@ class CrashScreen extends ConsumerWidget {
), ),
) )
], ],
) ),
const CloseButton(),
], ],
), ),
const Divider(), const Divider(),
if (kDebugMode)
Row(
children: [
ElevatedButton(
onPressed: provider.clearLogs,
child: const Text("Clear"),
),
],
),
if (crashLogs.isNotEmpty) if (crashLogs.isNotEmpty)
Flexible( Flexible(
child: Card( 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 paddingOf = mediaQuery.padding;
final viewPaddingOf = mediaQuery.viewPadding; final viewPaddingOf = mediaQuery.viewPadding;
final bottomPadding = isDesktop || kIsWeb ? 0.0 : paddingOf.bottom; final bottomPadding = isDesktop || kIsWeb ? 12.0 : paddingOf.bottom;
final bottomViewPadding = isDesktop || kIsWeb ? 0.0 : viewPaddingOf.bottom; final bottomViewPadding = isDesktop || kIsWeb ? 12.0 : viewPaddingOf.bottom;
final isHomeScreen = currentIndex != -1; final isHomeScreen = currentIndex != -1;
return PopScope( return PopScope(