Skip to content

Commit

Permalink
moved PackageInfo item to inside if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekshindhe committed Jul 25, 2022
1 parent e79a9d3 commit 2e08934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/razorpay_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Razorpay {
});
return;
}
PackageInfo packageInfo = await PackageInfo.fromPlatform();
if(Platform.isAndroid){
PackageInfo packageInfo = await PackageInfo.fromPlatform();
print(packageInfo.packageName);

This comment has been minimized.

Copy link
@nikb7

nikb7 Jul 26, 2022

can we remove this?

This comment has been minimized.

Copy link
@nikb7

nikb7 Jul 26, 2022

or maybe use developer.log

_channel.invokeMethod('setPackageName', packageInfo.packageName);
}
Expand Down

0 comments on commit 2e08934

Please sign in to comment.