mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 20:48:40 +00:00
opt: view note
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -26,7 +26,11 @@ class FavNoteItem extends StatelessWidget {
|
|||||||
onSelect();
|
onSelect();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Utils.handleWebview(item['web_url'], inApp: true);
|
Utils.handleWebview(
|
||||||
|
item['web_url'],
|
||||||
|
inApp: true,
|
||||||
|
parameters: {'uaType': 'android'},
|
||||||
|
);
|
||||||
},
|
},
|
||||||
onLongPress: () {
|
onLongPress: () {
|
||||||
if (!ctr.enableMultiSelect.value) {
|
if (!ctr.enableMultiSelect.value) {
|
||||||
|
|||||||
@@ -787,6 +787,7 @@ class Utils {
|
|||||||
String url, {
|
String url, {
|
||||||
bool off = false,
|
bool off = false,
|
||||||
bool inApp = false,
|
bool inApp = false,
|
||||||
|
Map? parameters,
|
||||||
}) async {
|
}) async {
|
||||||
if (inApp.not && GStorage.openInBrowser) {
|
if (inApp.not && GStorage.openInBrowser) {
|
||||||
if ((await PiliScheme.routePushFromUrl(url, selfHandle: true)).not) {
|
if ((await PiliScheme.routePushFromUrl(url, selfHandle: true)).not) {
|
||||||
@@ -796,7 +797,10 @@ class Utils {
|
|||||||
if (off) {
|
if (off) {
|
||||||
Get.offNamed(
|
Get.offNamed(
|
||||||
'/webview',
|
'/webview',
|
||||||
parameters: {'url': url},
|
parameters: {
|
||||||
|
'url': url,
|
||||||
|
if (parameters != null) ...parameters,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
PiliScheme.routePushFromUrl(url);
|
PiliScheme.routePushFromUrl(url);
|
||||||
|
|||||||
Reference in New Issue
Block a user