dart analyzer
This commit is contained in:
parent
3e140d6310
commit
7ffeb2d199
|
@ -914,9 +914,10 @@ class CardTextFieldState extends State<CardTextField> {
|
||||||
// Makes an http call to stripe API with provided card credentials and returns the result
|
// Makes an http call to stripe API with provided card credentials and returns the result
|
||||||
Future<Map<String, dynamic>?> getStripeResponse() async {
|
Future<Map<String, dynamic>?> getStripeResponse() async {
|
||||||
if (widget.stripePublishableKey == null) {
|
if (widget.stripePublishableKey == null) {
|
||||||
if (kDebugMode)
|
if (kDebugMode) {
|
||||||
print(
|
print(
|
||||||
'***ERROR tried calling `getStripeResponse()` but no stripe key provided');
|
'***ERROR tried calling `getStripeResponse()` but no stripe key provided');
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1074,8 +1075,9 @@ class CardTextFieldState extends State<CardTextField> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make the selection adjustment only on web, other platforms dont select on focus change
|
// Make the selection adjustment only on web, other platforms dont select on focus change
|
||||||
if (kIsWeb)
|
if (kIsWeb) {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) => _adjustSelection());
|
WidgetsBinding.instance.addPostFrameCallback((_) => _adjustSelection());
|
||||||
|
}
|
||||||
|
|
||||||
if (!isWideFormat) {
|
if (!isWideFormat) {
|
||||||
_scrollRow(step);
|
_scrollRow(step);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user