Skip to content

Commit

Permalink
remove nft and coins discover webview
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Oct 7, 2024
1 parent d39a610 commit 935608e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 49 deletions.
34 changes: 4 additions & 30 deletions lib/dashboard/discover/view/discover_tab_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,36 +121,10 @@ class _DiscoverTabPageViewState extends State<DiscoverTabPageView>
child: TabBarView(
controller: _tabController,
physics: const NeverScrollableScrollPhysics(),
children: [
const DiscoverPage(),
MWebViewPage(
url: Urls.discoverNftsWebView,
onNavigationRequest: (request) async {
if (!request.url.startsWith(
Urls.discoverCoinsWebView,
)) {
await LaunchUrl.launch(request.url);
return NavigationDecision.prevent;
} else {
return NavigationDecision.navigate;
}
},
),
MWebViewPage(
url: Urls.discoverCoinsWebView,
onNavigationRequest: (request) async {
if (!request.url
.startsWith(Urls.discoverCoinsWebView)) {
/// if a link has a different base URL than the
/// current webpage, it should be opened in an
/// external browser because of dynamic links
await LaunchUrl.launch(request.url);
return NavigationDecision.prevent;
} else {
return NavigationDecision.navigate;
}
},
),
children: const [
DiscoverPage(),
NftPage(),
TokensPage(),
],
),
),
Expand Down
36 changes: 18 additions & 18 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,10 @@ packages:
dependency: "direct main"
description:
name: dart_jsonwebtoken
sha256: "346e9a21e4bf6e6a431e19ece00ebb2e3668e1e339cabdf6f46d18d88692a848"
sha256: adf073720e491d64fa599942615b919915710af2d809b2798146f9b7c4330f3f
url: "https://pub.dev"
source: hosted
version: "2.14.0"
version: "2.14.1"
dart_style:
dependency: transitive
description:
Expand Down Expand Up @@ -827,18 +827,18 @@ packages:
dependency: transitive
description:
name: file_selector_linux
sha256: "045d372bf19b02aeb69cacf8b4009555fb5f6f0b7ad8016e5f46dd1387ddd492"
sha256: "712ce7fab537ba532c8febdb1a8f167b32441e74acd68c3ccb2e36dcb52c4ab2"
url: "https://pub.dev"
source: hosted
version: "0.9.2+1"
version: "0.9.3"
file_selector_macos:
dependency: transitive
description:
name: file_selector_macos
sha256: cb284e267f8e2a45a904b5c094d2ba51d0aabfc20b1538ab786d9ef7dc2bf75c
sha256: "271ab9986df0c135d45c3cdb6bd0faa5db6f4976d3e4b437cf7d0f258d941bfc"
url: "https://pub.dev"
source: hosted
version: "0.9.4+1"
version: "0.9.4+2"
file_selector_platform_interface:
dependency: transitive
description:
Expand All @@ -851,10 +851,10 @@ packages:
dependency: transitive
description:
name: file_selector_windows
sha256: "2ad726953f6e8affbc4df8dc78b77c3b4a060967a291e528ef72ae846c60fb69"
sha256: "8f5d2f6590d51ecd9179ba39c64f722edc15226cc93dcc8698466ad36a4a85a4"
url: "https://pub.dev"
source: hosted
version: "0.9.3+2"
version: "0.9.3+3"
fixnum:
dependency: transitive
description:
Expand Down Expand Up @@ -1343,10 +1343,10 @@ packages:
dependency: transitive
description:
name: injectable
sha256: "69874ba3ec10e3a0de3f519a184442878291d928f3299d718813f24642585198"
sha256: "5e1556ea1d374fe44cbe846414d9bab346285d3d8a1da5877c01ad0774006068"
url: "https://pub.dev"
source: hosted
version: "2.4.4"
version: "2.5.0"
intl:
dependency: "direct overridden"
description:
Expand Down Expand Up @@ -1493,10 +1493,10 @@ packages:
dependency: transitive
description:
name: local_auth_darwin
sha256: "7ba5738c874ca2b910d72385d00d2bebad9d4e807612936cf5e32bc01a048c71"
sha256: "6d2950da311d26d492a89aeb247c72b4653ddc93601ea36a84924a396806d49c"
url: "https://pub.dev"
source: hosted
version: "1.4.0"
version: "1.4.1"
local_auth_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -2171,10 +2171,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_foundation
sha256: c4b35f6cb8f63c147312c054ce7c2254c8066745125264f0c88739c417fc9d9f
sha256: "07e050c7cd39bad516f8d64c455f04508d09df104be326d8c02551590a0d513d"
url: "https://pub.dev"
source: hosted
version: "2.5.2"
version: "2.5.3"
shared_preferences_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -2649,10 +2649,10 @@ packages:
dependency: "direct main"
description:
name: webview_flutter_android
sha256: "6e64fcb1c19d92024da8f33503aaeeda35825d77142c01d0ea2aa32edc79fdc8"
sha256: ed021f27ae621bc97a6019fb601ab16331a3db4bf8afa305e9f6689bdb3edced
url: "https://pub.dev"
source: hosted
version: "3.16.7"
version: "3.16.8"
webview_flutter_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -2713,10 +2713,10 @@ packages:
dependency: transitive
description:
name: xdg_directories
sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d
sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15"
url: "https://pub.dev"
source: hosted
version: "1.0.4"
version: "1.1.0"
xml:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: altme
description: AltMe Flutter App

version: 2.14.0+519
version: 2.14.1+520

publish_to: "none" # Remove this line if you wish to publish to pub.dev
environment:
Expand Down

0 comments on commit 935608e

Please sign in to comment.