Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove userAgent #1345

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions lib/view/artwork_common_widget.dart
Original file line number Diff line number Diff line change
@@ -431,14 +431,10 @@ INFTRenderingWidget buildRenderingWidget(
Function({int? time})? onDispose,
FocusNode? focusNode,
Widget? loadingWidget,
String? userAgent,
}) {
String mimeType = assetToken.getMimeType;
final version = injector<ConfigurationService>().getVersionInfo();
final renderingWidget = typesOfNFTRenderingWidget(mimeType);

userAgent ??= "user_agent".tr(namedArgs: {"version": version.toString()});

renderingWidget.setRenderWidgetBuilder(RenderingWidgetBuilder(
previewURL: attempt == null
? assetToken.getPreviewUrl()
@@ -453,7 +449,6 @@ INFTRenderingWidget buildRenderingWidget(
skipViewport: assetToken.scrollable ?? false,
isMute: isMute,
focusNode: focusNode,
userAgent: userAgent,
));

return renderingWidget;
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
@@ -1743,8 +1743,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: dd4cc05389e0df0e7a7138349013ac94a302a63b
resolved-ref: dd4cc05389e0df0e7a7138349013ac94a302a63b
ref: "621aacb84c12f41d5d6dce95fa6306aecf486231"
resolved-ref: "621aacb84c12f41d5d6dce95fa6306aecf486231"
url: "https://github.com/autonomy-system/nft-rendering.git"
source: git
version: "1.0.9"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ dependencies:
nft_rendering:
git:
url: https://github.com/autonomy-system/nft-rendering.git
ref: dd4cc05389e0df0e7a7138349013ac94a302a63b
ref: 621aacb84c12f41d5d6dce95fa6306aecf486231
ppupha marked this conversation as resolved.
Show resolved Hide resolved
onesignal_flutter: ^3.3.0
open_settings: ^2.0.2
overlay_support: ^2.0.0