Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
revert
  • Loading branch information
Emmanuel Garcia committed Jun 21, 2022
commit cffe771decacd25d9e89e7b15b18ef008725df7f
10 changes: 4 additions & 6 deletions testing/scenario_app/lib/src/platform_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1047,14 +1047,12 @@ void addPlatformView(
String text = 'platform view',
double width = 500,
double height = 500,
String? viewType,
String viewType = 'scenarios/textPlatformView',
}) {
if (viewType == null && scenarioParams['view_type'] is String) {
if (scenarioParams['view_type'] is String) {
viewType = scenarioParams['view_type'];
}

assert(viewType != null, 'view type not set');

final String platformViewKey = '$viewType-$id';

if (_createdPlatformViews.containsKey(platformViewKey)) {
Expand Down Expand Up @@ -1099,8 +1097,8 @@ void addPlatformView(
'viewType'.length,
...utf8.encode('viewType'),
_valueString,
viewType!.length,
...utf8.encode(viewType!),
viewType.length,
...utf8.encode(viewType),
if (Platform.isAndroid && !usesAndroidHybridComposition) ...<int>[
_valueString,
'width'.length,
Expand Down