Skip to content
Open
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
4 changes: 1 addition & 3 deletions packages/stripe/lib/src/widgets/card_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,7 @@ class _MethodChannelCardFieldState extends State<_MethodChannelCardField>
void _handleCardChanged(dynamic arguments) {
try {
final map = Map<String, dynamic>.from(arguments);
final update = CardFieldInputDetails.fromJson(
Map<String, dynamic>.from(map['card']),
);
final update = CardFieldInputDetails.fromJson(map);
updateCardDetails(update, controller);
widget.onCardChanged?.call(update);
// ignore: avoid_catches_without_on_clauses
Expand Down