Fix open bookmark external browser
This commit is contained in:
@@ -101,7 +101,7 @@ class Bookmarks extends _$Bookmarks {
|
|||||||
void selectBookmark(Bookmark bookmark, double width) {
|
void selectBookmark(Bookmark bookmark, double width) {
|
||||||
if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
||||||
ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark);
|
ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark);
|
||||||
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == false) {
|
||||||
openUrl(bookmark.url!);
|
openUrl(bookmark.url!);
|
||||||
}
|
}
|
||||||
state.selectedBookmark = bookmark;
|
state.selectedBookmark = bookmark;
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class SearchBookmarks extends _$SearchBookmarks {
|
|||||||
void selectBookmark(Bookmark bookmark, double width) {
|
void selectBookmark(Bookmark bookmark, double width) {
|
||||||
if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
||||||
ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark);
|
ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark);
|
||||||
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == false) {
|
||||||
openUrl(bookmark.url!);
|
openUrl(bookmark.url!);
|
||||||
}
|
}
|
||||||
state.selectedBookmark = bookmark;
|
state.selectedBookmark = bookmark;
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ class FilteredBookmarks extends _$FilteredBookmarks {
|
|||||||
void selectBookmark(Bookmark bookmark, double width) {
|
void selectBookmark(Bookmark bookmark, double width) {
|
||||||
if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
||||||
ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark);
|
ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark);
|
||||||
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
|
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == false) {
|
||||||
openUrl(bookmark.url!);
|
openUrl(bookmark.url!);
|
||||||
}
|
}
|
||||||
state.selectedBookmark = bookmark;
|
state.selectedBookmark = bookmark;
|
||||||
|
|||||||
Reference in New Issue
Block a user