mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
fixes (#1809)
* Revert "opt gesture"
This reverts commit bd97f9a500.
* revert: late init
* update [skip ci]
Signed-off-by: dom <githubaccount56556@proton.me>
---------
Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
777c3c2278
commit
7eaf05839a
@@ -1,6 +1,5 @@
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/gesture/immediate_tap_gesture_recognizer.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/cached_network_svg_image.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/custom_grid_view.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
@@ -19,6 +18,7 @@ import 'package:PiliPlus/utils/image_utils.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get_core/src/get_main.dart';
|
||||
import 'package:get/get_navigation/src/extension_navigation.dart';
|
||||
@@ -69,7 +69,7 @@ class OpusContent extends StatelessWidget {
|
||||
? null
|
||||
: colorScheme.primary,
|
||||
),
|
||||
recognizer: ImmediateTapGestureRecognizer()
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
switch (rich.type) {
|
||||
case 'RICH_TEXT_NODE_TYPE_AT':
|
||||
@@ -293,7 +293,7 @@ class OpusContent extends StatelessWidget {
|
||||
return TextSpan(
|
||||
text: '${hasUrl ? '\u{1F517}' : ''}$text',
|
||||
recognizer: hasUrl
|
||||
? (ImmediateTapGestureRecognizer()
|
||||
? (TapGestureRecognizer()
|
||||
..onTap = () =>
|
||||
PiliScheme.routePushFromUrl(jumpUrl))
|
||||
: null,
|
||||
|
||||
Reference in New Issue
Block a user