Skip to content

Commit d9a3565

Browse files
committed
fix #2132
1 parent cfec65a commit d9a3565

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

packages/stripe/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 11.5.1
2+
- retain compatibility with older Flutter versions #2132
3+
14
## 11.5.0
25
Align with Stripe React Native [0.43.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.43.0):
36

packages/stripe/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_stripe
22
description: Flutter library for Stripe. Supports PaymentSheets, Apple & Google Pay, SCA, PSD2 and much more.
3-
version: 11.5.0
3+
version: 11.5.1
44
homepage: https://github.com/flutter-stripe/flutter_stripe
55
repository: https://github.com/flutter-stripe/flutter_stripe
66

@@ -24,7 +24,7 @@ dependencies:
2424
meta: ^1.8.0
2525
stripe_android: ^11.5.0
2626
stripe_ios: ^11.5.0
27-
stripe_platform_interface: ^11.5.0
27+
stripe_platform_interface: ^11.5.1
2828
dev_dependencies:
2929
flutter_test:
3030
sdk: flutter

packages/stripe_platform_interface/lib/src/models/color.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ class ColorKey {
2020

2121
extension ColorX on Color {
2222
String get colorHexString {
23-
final red = (r * 255).toInt().toRadixString(16).padLeft(2, '0');
24-
final green = (g * 255).toInt().toRadixString(16).padLeft(2, '0');
25-
final blue = (b * 255).toInt().toRadixString(16).padLeft(2, '0');
26-
final alpha = (a * 255).toInt().toRadixString(16).padLeft(2, '0');
23+
// ignore: deprecated_member_use
24+
final red = (this.red * 255).toInt().toRadixString(16).padLeft(2, '0');
25+
// ignore: deprecated_member_use
26+
final green = (this.green * 255).toInt().toRadixString(16).padLeft(2, '0');
27+
// ignore: deprecated_member_use
28+
final blue = (this.blue * 255).toInt().toRadixString(16).padLeft(2, '0');
29+
// ignore: deprecated_member_use
30+
final alpha = (this.alpha * 255).toInt().toRadixString(16).padLeft(2, '0');
2731

2832
return '$alpha$red$green$blue';
2933
}

packages/stripe_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stripe_platform_interface
22
description: Platform interface for stripe sdk
3-
version: 11.5.0
3+
version: 11.5.1
44
repository: https://github.com/flutter-stripe/flutter_stripe
55
homepage: https://pub.dev/packages/flutter_stripe
66

0 commit comments

Comments
 (0)