Skip to content

Commit

Permalink
Fix+Chore: Replace print with debugPrint, update version num, update …
Browse files Browse the repository at this point in the history
…changelog
  • Loading branch information
Flajt committed Jun 1, 2023
1 parent b4d5e65 commit 6260184
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ Fixed some small staff in the documentation, tried to format the data better

## 0.2.6
- Created new parameter called onDonate which allows for custom code to be executed instead of the typical url launcher method. Thanks to [@FriesI23](https://github.com/FriesI23)
- Add pubspec.lock to .gitignore based on [this](https://stackoverflow.com/a/16136740) StackOverflow post
- Add pubspec.lock to .gitignore based on [this](https://stackoverflow.com/a/16136740) StackOverflow post

## 0.2.7
- Replace print with `debugPrint` in `try catch` statements
2 changes: 1 addition & 1 deletion lib/donationButtons/buyMeACoffeeButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BuyMeACoffeeButton extends StatelessWidget {
? onLaunchURL!(baseUrl + buyMeACoffeeName)
: launchUrlString(baseUrl + buyMeACoffeeName));
} catch (e) {
print("Error: $e");
debugPrint("Error: $e");
}
if (onDonation != null) {
onDonation!();
Expand Down
2 changes: 1 addition & 1 deletion lib/donationButtons/ko-fiButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class KofiButton extends StatelessWidget {
? onLaunchURL!(baseUrl + kofiName)
: launchUrlString(baseUrl + kofiName));
} catch (e) {
print("Error: $e");
debugPrint("Error: $e");
}
if (onDonation != null) {
onDonation!();
Expand Down
2 changes: 1 addition & 1 deletion lib/donationButtons/patreonButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PatreonButton extends StatelessWidget {
? onLaunchURL!(baseUrl + patreonName)
: launchUrlString(baseUrl + patreonName));
} catch (e) {
print("Error: $e");
debugPrint("Error: $e");
}
if (onDonation != null) {
onDonation!();
Expand Down
2 changes: 1 addition & 1 deletion lib/donationButtons/paypalButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PayPalButton extends StatelessWidget {
? onLaunchURL!(baseUrl + paypalButtonId)
: launchUrlString(baseUrl + paypalButtonId));
} catch (e) {
print("Error: $e");
debugPrint("Error: $e");
}
if (onDonation != null) {
onDonation!();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_donation_buttons
description: A collection of your most used donation/support buttons to support your development.
version: 0.2.6
version: 0.2.7
homepage: https://github.com/Flajt/flutter_donation_buttons
repository: https://github.com/Flajt/flutter_donation_buttons
environment:
Expand Down

0 comments on commit 6260184

Please sign in to comment.