mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
chore: Small fixes
This commit is contained in:
parent
8e4171be56
commit
d421bb13e6
3 changed files with 9 additions and 15 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -292,7 +292,6 @@ class _SideNavigationBarState extends ConsumerState<SideNavigationBar> {
|
|||
}
|
||||
},
|
||||
),
|
||||
if (AdaptiveLayout.of(context).inputDevice == InputDevice.pointer) const SizedBox(height: 16),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue