Skip to content

Commit eb26f24

Browse files
committed
refactor: changes for 1.0.5+1
1 parent b62bcc7 commit eb26f24

File tree

12 files changed

+28
-24
lines changed

12 files changed

+28
-24
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.5+1
2+
* Updated dependencies
3+
* Updated ReadMe
4+
15
## 1.0.5 (Breaking change)
26
* Supported sound null-safety
37
* Resolved build failure due to unresolved VERSION_NAME and VERSION_CODE

lib/flutter_paystack.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ export 'package:flutter_paystack/src/common/paystack.dart';
44
export 'package:flutter_paystack/src/models/card.dart';
55
export 'package:flutter_paystack/src/models/charge.dart';
66
export 'package:flutter_paystack/src/models/checkout_response.dart';
7-
export 'package:flutter_paystack/src/models/transaction.dart';

lib/src/common/paystack.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class PaystackPlugin {
4242

4343
// Using cascade notation to build the platform specific info
4444
try {
45-
4645
platformInfo = await PlatformInfo.fromMethodChannel(Utils.methodChannel);
4746
_sdkInitialized = true;
4847
} on PlatformException {

lib/src/common/utils.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import 'package:flutter/services.dart';
22
import 'package:intl/intl.dart';
33

44
class Utils {
5-
static const MethodChannel methodChannel = const MethodChannel('plugins.wilburt/flutter_paystack');
5+
static const MethodChannel methodChannel =
6+
const MethodChannel('plugins.wilburt/flutter_paystack');
67

78
static String getKeyErrorMsg(String keyType) {
89
return 'Invalid $keyType key. You must use a valid $keyType key. Ensure that you '

lib/src/transaction/bank_transaction_manager.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ class BankTransactionManager extends BaseTransactionManager {
1515
BankChargeRequestBody? chargeRequestBody;
1616
final BankServiceContract service;
1717

18-
BankTransactionManager({
19-
required this.service,
20-
required Charge charge,
21-
required BuildContext context,
22-
required String publicKey
23-
}) : super(charge: charge, context: context, publicKey: publicKey);
18+
BankTransactionManager(
19+
{required this.service,
20+
required Charge charge,
21+
required BuildContext context,
22+
required String publicKey})
23+
: super(charge: charge, context: context, publicKey: publicKey);
2424

2525
Future<CheckoutResponse> chargeBank() async {
2626
await initiate();

lib/src/widgets/buttons.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ class _BaseButton extends StatelessWidget {
112112
)),
113113
)
114114
: iconData == null
115-
? child == null ? textWidget : child!
115+
? child == null
116+
? textWidget
117+
: child!
116118
: new Row(
117119
mainAxisAlignment: MainAxisAlignment.center,
118120
children: <Widget>[

lib/src/widgets/checkout/bank_checkout.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ class _BankCheckoutState extends BaseCheckoutMethodState<BankCheckout> {
215215

216216
void _chargeAccount() async {
217217
final response = await BankTransactionManager(
218-
charge: widget.charge,
219-
service: widget.service,
220-
context: context,
221-
publicKey: widget.publicKey
222-
).chargeBank();
218+
charge: widget.charge,
219+
service: widget.service,
220+
context: context,
221+
publicKey: widget.publicKey)
222+
.chargeBank();
223223

224224
if (!mounted) return;
225225

lib/src/widgets/custom_dialog.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CustomAlertDialog extends StatelessWidget {
1515
this.expanded = false,
1616
this.fullscreen = false,
1717
required this.content,
18-
}) : super(key: key);
18+
}) : super(key: key);
1919

2020
final Widget? title;
2121
final EdgeInsetsGeometry? titlePadding;

lib/src/widgets/otp_widget.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class _OtpWidgetState extends BaseState<OtpWidget> {
2020
String? _otp;
2121
var heightBox = const SizedBox(height: 20.0);
2222

23-
2423
@override
2524
Widget buildChild(BuildContext context) {
2625
return new CustomAlertDialog(

pubspec.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
name: flutter_paystack
22
description: A Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS.
3-
version: 1.0.5
4-
author: Wilberforce Uwadiegwu <faradaywilly@gmail.com>
3+
version: 1.0.5+1
54
homepage: https://github.com/wilburt/flutter_paystack
65

76
dependencies:
87
flutter:
98
sdk: flutter
10-
http: ^0.13.0
9+
http: ^0.13.1
1110
intl: ^0.17.0
1211
meta: ^1.3.0
1312
async: ^2.5.0
@@ -16,7 +15,7 @@ dev_dependencies:
1615
flutter_test:
1716
sdk: flutter
1817
matcher: ^0.12.10
19-
mockito: ^5.0.1
18+
mockito: ^5.0.3
2019

2120

2221
flutter:

0 commit comments

Comments
 (0)