fix: Lots of navigation improvements

This commit is contained in:
PartyDonut 2025-10-03 13:02:51 +02:00
parent c299492d6d
commit 5174bb3a6c
55 changed files with 1019 additions and 832 deletions

View file

@ -1,6 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:fladder/util/adaptive_layout/adaptive_layout.dart';
class ClickableText extends ConsumerStatefulWidget {
final String text;
final double opacity;
@ -56,6 +59,9 @@ class _ClickableTextState extends ConsumerState<ClickableText> {
@override
Widget build(BuildContext context) {
if (AdaptiveLayout.inputDeviceOf(context) == InputDevice.dPad) {
return _textWidget(false);
}
return widget.onTap != null ? _buildClickable() : _textWidget(false);
}
}