mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -1,5 +1,6 @@
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/gesture/immediate_tap_gesture_recognizer.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/custom_grid_view.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/http/dynamics.dart';
|
||||
@@ -12,7 +13,6 @@ import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:PiliPlus/pages/dynamics/widgets/vote.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -70,7 +70,7 @@ TextSpan? richNode(
|
||||
TextSpan(
|
||||
text: ' ${i.text}',
|
||||
style: style,
|
||||
recognizer: TapGestureRecognizer()
|
||||
recognizer: ImmediateTapGestureRecognizer()
|
||||
..onTap = () => Get.toNamed('/member?mid=${i.rid}'),
|
||||
),
|
||||
);
|
||||
@@ -81,7 +81,7 @@ TextSpan? richNode(
|
||||
TextSpan(
|
||||
text: i.origText,
|
||||
style: style,
|
||||
recognizer: TapGestureRecognizer()
|
||||
recognizer: ImmediateTapGestureRecognizer()
|
||||
..onTap = () => Get.toNamed(
|
||||
'/searchResult',
|
||||
parameters: {
|
||||
@@ -113,7 +113,7 @@ TextSpan? richNode(
|
||||
style: style,
|
||||
recognizer: i.origText == null
|
||||
? null
|
||||
: (TapGestureRecognizer()
|
||||
: (ImmediateTapGestureRecognizer()
|
||||
..onTap = () => PageUtils.handleWebview(i.origText!)),
|
||||
),
|
||||
);
|
||||
@@ -135,7 +135,7 @@ TextSpan? richNode(
|
||||
TextSpan(
|
||||
text: '投票:${i.text}',
|
||||
style: style,
|
||||
recognizer: TapGestureRecognizer()
|
||||
recognizer: ImmediateTapGestureRecognizer()
|
||||
..onTap = () {
|
||||
final dynIdStr = item.basic?.commentIdStr;
|
||||
final dynId = dynIdStr != null
|
||||
@@ -177,7 +177,7 @@ TextSpan? richNode(
|
||||
TextSpan(
|
||||
text: '${i.origText} ',
|
||||
style: style,
|
||||
recognizer: TapGestureRecognizer()
|
||||
recognizer: ImmediateTapGestureRecognizer()
|
||||
..onTap = () => Get.toNamed(
|
||||
'/webview',
|
||||
parameters: {
|
||||
@@ -207,7 +207,7 @@ TextSpan? richNode(
|
||||
style: style,
|
||||
recognizer: i.jumpUrl == null
|
||||
? null
|
||||
: (TapGestureRecognizer()
|
||||
: (ImmediateTapGestureRecognizer()
|
||||
..onTap = () => PageUtils.handleWebview(i.jumpUrl!)),
|
||||
),
|
||||
);
|
||||
@@ -229,7 +229,7 @@ TextSpan? richNode(
|
||||
TextSpan(
|
||||
text: '${i.text} ',
|
||||
style: style,
|
||||
recognizer: TapGestureRecognizer()
|
||||
recognizer: ImmediateTapGestureRecognizer()
|
||||
..onTap = () async {
|
||||
try {
|
||||
int? cid = await SearchHttp.ab2c(bvid: i.rid);
|
||||
@@ -272,7 +272,7 @@ TextSpan? richNode(
|
||||
TextSpan(
|
||||
text: i.text,
|
||||
style: style,
|
||||
recognizer: TapGestureRecognizer()
|
||||
recognizer: ImmediateTapGestureRecognizer()
|
||||
..onTap = () {
|
||||
void onView(List<OpusPicModel> list) {
|
||||
PageUtils.imageView(
|
||||
@@ -328,7 +328,7 @@ TextSpan? richNode(
|
||||
style: style,
|
||||
recognizer: i.jumpUrl == null
|
||||
? null
|
||||
: (TapGestureRecognizer()
|
||||
: (ImmediateTapGestureRecognizer()
|
||||
..onTap = () => PageUtils.handleWebview(i.jumpUrl!)),
|
||||
),
|
||||
);
|
||||
@@ -340,7 +340,7 @@ TextSpan? richNode(
|
||||
style: style,
|
||||
recognizer: i.jumpUrl == null
|
||||
? null
|
||||
: (TapGestureRecognizer()
|
||||
: (ImmediateTapGestureRecognizer()
|
||||
..onTap = () => PageUtils.handleWebview(i.jumpUrl!)),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user