From 7ffeb2d1997586dbf0d5ca94f73ac36e5156e529 Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Thu, 7 Dec 2023 16:24:17 -0700 Subject: [PATCH] dart analyzer --- lib/stripe_native_card_field.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/stripe_native_card_field.dart b/lib/stripe_native_card_field.dart index 530afb9..51a1dfd 100644 --- a/lib/stripe_native_card_field.dart +++ b/lib/stripe_native_card_field.dart @@ -914,9 +914,10 @@ class CardTextFieldState extends State { // Makes an http call to stripe API with provided card credentials and returns the result Future?> getStripeResponse() async { if (widget.stripePublishableKey == null) { - if (kDebugMode) + if (kDebugMode) { print( '***ERROR tried calling `getStripeResponse()` but no stripe key provided'); + } return null; } @@ -1074,8 +1075,9 @@ class CardTextFieldState extends State { } // Make the selection adjustment only on web, other platforms dont select on focus change - if (kIsWeb) + if (kIsWeb) { WidgetsBinding.instance.addPostFrameCallback((_) => _adjustSelection()); + } if (!isWideFormat) { _scrollRow(step);