opt: scheme

This commit is contained in:
My-Responsitories
2025-08-31 13:06:34 +08:00
committed by bggRGjQaUbCoE
parent 2b1759bd10
commit a635767561
2 changed files with 14 additions and 17 deletions

View File

@@ -133,11 +133,13 @@ class PiliScheme {
IconButton(
tooltip: '前往原视频',
onPressed: () {
String? enterUri = uri
.toString()
.split('?')
.first; // to check
routePush(Uri.parse(enterUri));
routePush(
Uri(
scheme: uri.scheme,
host: uri.host,
path: uri.path,
),
);
},
icon: const Icon(Icons.open_in_new),
),