mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: flutter升至3.24.0,附带更新依赖,将appscheme替换为applinks
This commit is contained in:
@@ -149,7 +149,7 @@ class _DanmakuBlockPageState extends State<DanmakuBlockPage> {
|
||||
return ListTile(
|
||||
title: Text(
|
||||
list[listIndex].filter,
|
||||
style: Theme.of(context).textTheme.subtitle1,
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
trailing: IconButton(
|
||||
icon: const Icon(Icons.delete),
|
||||
|
||||
@@ -63,11 +63,11 @@ class _AtMePageState extends State<AtMePage> {
|
||||
itemBuilder: (_, int i) {
|
||||
return ListTile(
|
||||
onTap: () {
|
||||
String nativeUri = _atMeController
|
||||
.msgFeedAtMeList[i].item?.nativeUri ??
|
||||
"";
|
||||
PiliScheme.routePush(
|
||||
PiliScheme.stringToSchemeEntity(nativeUri));
|
||||
String? nativeUri = _atMeController
|
||||
.msgFeedAtMeList[i].item?.nativeUri;
|
||||
if (nativeUri != null) {
|
||||
PiliScheme.routePush(Uri.parse(nativeUri));
|
||||
}
|
||||
// SmartDialog.showToast("跳转至:$nativeUri(暂未实现)");
|
||||
},
|
||||
leading: NetworkImgLayer(
|
||||
|
||||
@@ -113,8 +113,10 @@ class LikeMeList extends StatelessWidget {
|
||||
itemBuilder: (_, int i) {
|
||||
return ListTile(
|
||||
onTap: () {
|
||||
String nativeUri = msgFeedLikeMeList[i].item?.nativeUri ?? "";
|
||||
PiliScheme.routePush(PiliScheme.stringToSchemeEntity(nativeUri));
|
||||
String? nativeUri = msgFeedLikeMeList[i].item?.nativeUri;
|
||||
if (nativeUri != null) {
|
||||
PiliScheme.routePush(Uri.parse(nativeUri));
|
||||
}
|
||||
// SmartDialog.showToast("跳转至:$nativeUri(暂未实现)");
|
||||
},
|
||||
leading: Column(
|
||||
|
||||
@@ -64,11 +64,11 @@ class _ReplyMePageState extends State<ReplyMePage> {
|
||||
itemBuilder: (_, int i) {
|
||||
return ListTile(
|
||||
onTap: () {
|
||||
String nativeUri = _replyMeController
|
||||
.msgFeedReplyMeList[i].item?.nativeUri ??
|
||||
"";
|
||||
PiliScheme.routePush(
|
||||
PiliScheme.stringToSchemeEntity(nativeUri));
|
||||
String? nativeUri = _replyMeController
|
||||
.msgFeedReplyMeList[i].item?.nativeUri;
|
||||
if (nativeUri != null) {
|
||||
PiliScheme.routePush(Uri.parse(nativeUri));
|
||||
}
|
||||
// SmartDialog.showToast("跳转至:$nativeUri(暂未实现)");
|
||||
},
|
||||
leading: NetworkImgLayer(
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:PiliPalaX/http/video.dart';
|
||||
import 'package:appscheme/appscheme.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
@@ -720,16 +719,7 @@ InlineSpan buildContent(
|
||||
// return;
|
||||
// }
|
||||
Uri uri = Uri.parse(redirectUrl);
|
||||
SchemeEntity scheme = SchemeEntity(
|
||||
scheme: uri.scheme,
|
||||
host: uri.host,
|
||||
port: uri.port,
|
||||
path: uri.path,
|
||||
query: uri.queryParameters,
|
||||
source: '',
|
||||
dataString: redirectUrl,
|
||||
);
|
||||
PiliScheme.routePush(scheme);
|
||||
PiliScheme.routePush(uri);
|
||||
// final String pathSegment = Uri.parse(redirectUrl).path;
|
||||
// final String lastPathSegment =
|
||||
// pathSegment.split('/').last;
|
||||
|
||||
Reference in New Issue
Block a user