donate button change

This commit is contained in:
Jonas Bark
2025-09-08 16:54:23 +02:00
parent 1c40455bf3
commit fbd6356be0
3 changed files with 18 additions and 6 deletions

1
.github/FUNDING.yml vendored
View File

@@ -1,3 +1,2 @@
github: [jonasbark]
open_collective: jonas-bark1
custom: ["https://paypal.me/boni"]

View File

@@ -13,7 +13,6 @@ on:
jobs:
build:
if: false
name: Build & Release
runs-on: macos-latest

View File

@@ -6,12 +6,26 @@ import 'package:url_launcher/url_launcher_string.dart';
List<Widget> buildMenuButtons() {
return [
TextButton(
onPressed: () {
launchUrlString('https://paypal.me/boni');
PopupMenuButton(
itemBuilder: (BuildContext context) {
return [
PopupMenuItem(
child: Text('PayPal'),
onTap: () {
launchUrlString('https://paypal.me/boni');
},
),
PopupMenuItem(
child: Text('Other'),
onTap: () {
launchUrlString('https://github.com/sponsors/jonasbark?frequency=one-time');
},
),
];
},
child: Text('Donate ♥'),
icon: Text('Donate ♥', style: TextStyle(color: Colors.red, fontWeight: FontWeight.bold)),
),
SizedBox(width: 8),
const MenuButton(),
SizedBox(width: 8),
];