mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
fix: Lots of navigation improvements
This commit is contained in:
parent
c299492d6d
commit
5174bb3a6c
55 changed files with 1019 additions and 832 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue