Skip to content

Comment unused vars #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
129 changes: 129 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions .idea/libraries/Dart_SDK.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .idea/libraries/Flutter_Plugins.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 22 additions & 12 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ import 'dart:async';
import 'dart:io' show Platform;

import 'package:flutter/material.dart';
import 'package:flutter_paytabs_bridge/BaseBillingShippingInfo.dart';
import 'package:flutter_paytabs_bridge/IOSThemeConfiguration.dart';
import 'package:flutter_paytabs_bridge/PaymentSDKQueryConfiguration.dart';
import 'package:flutter_paytabs_bridge/PaymentSDKSavedCardInfo.dart';
import 'package:flutter_paytabs_bridge/PaymentSdkApms.dart';
import 'package:flutter_paytabs_bridge/PaymentSdkConfigurationDetails.dart';
import 'package:flutter_paytabs_bridge/PaymentSdkTokeniseType.dart';
import 'package:flutter_paytabs_bridge/flutter_paytabs_bridge.dart';
import 'package:flutter_paytabs_bridge/paytabs_payment.dart';

void main() {
runApp(MyApp());
Expand All @@ -29,10 +22,27 @@ class _MyAppState extends State<MyApp> {
}

PaymentSdkConfigurationDetails generateConfig() {
var billingDetails = BillingDetails("John Smith", "[email protected]",
"+97311111111", "st. 12", "eg", "dubai", "dubai", "12345");
var shippingDetails = ShippingDetails("John Smith", "[email protected]",
"+97311111111", "st. 12", "eg", "dubai", "dubai", "12345");
var billingDetails = BillingDetails(
name: "John Smith",
email: "[email protected]",
phone: "+97311111111",
addressLine: "st. 12",
country: "eg",
city: "dubai",
state: "dubai",
zipCode: "12345",
);
var shippingDetails = ShippingDetails(
name: "John Smith",
email: "[email protected]",
phone: "+97311111111",
addressLine: "st. 12",
country: "eg",
city: "dubai",
state: "dubai",
zipCode: "12345",
);

List<PaymentSdkAPms> apms = [];
apms.add(PaymentSdkAPms.AMAN);
final configuration = PaymentSdkConfigurationDetails(
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.6.5"
version: "2.6.7"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
47 changes: 21 additions & 26 deletions lib/BaseBillingShippingInfo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import 'flutter_paytabs_bridge.dart';
class BillingDetails {
String name, email, phone, addressLine, country, city, state, zipCode;

BillingDetails(
this.name,
this.email,
this.phone,
this.addressLine,
this.country,
this.city,
this.state,
this.zipCode,
);
BillingDetails({
required this.name,
required this.email,
required this.phone,
required this.addressLine,
required this.country,
required this.city,
required this.state,
required this.zipCode,
});
}

extension BillingDetailsExtension on BillingDetails {
Expand All @@ -31,23 +31,18 @@ extension BillingDetailsExtension on BillingDetails {
}

class ShippingDetails {
String name;
String email;
String phone;
String addressLine;
String country;
String city, state, zipCode;
String name, email, phone, addressLine, country, city, state, zipCode;

ShippingDetails(
this.name,
this.email,
this.phone,
this.addressLine,
this.country,
this.city,
this.state,
this.zipCode,
);
ShippingDetails({
required this.name,
required this.email,
required this.phone,
required this.addressLine,
required this.country,
required this.city,
required this.state,
required this.zipCode,
});
}

extension ShippingDetailsExtension on ShippingDetails {
Expand Down
4 changes: 2 additions & 2 deletions lib/flutter_paytabs_bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ class FlutterPaytabsBridge {

static Future<dynamic> clearSavedCards() async {
MethodChannel localChannel = MethodChannel('flutter_paytabs_bridge');
EventChannel localStream =
const EventChannel('flutter_paytabs_bridge_stream');
// EventChannel localStream =
// const EventChannel('flutter_paytabs_bridge_stream');

return await localChannel.invokeMethod('clearSavedCards');
}
Expand Down
8 changes: 8 additions & 0 deletions lib/paytabs_payment.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export 'BaseBillingShippingInfo.dart';
export 'IOSThemeConfiguration.dart';
export 'PaymentSDKQueryConfiguration.dart';
export 'PaymentSDKSavedCardInfo.dart';
export 'PaymentSdkApms.dart';
export 'PaymentSdkConfigurationDetails.dart';
export 'PaymentSdkTokeniseType.dart';
export 'flutter_paytabs_bridge.dart';