mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-05-15 21:28:20 +02:00
chore: remove Buy Me a Coffee references (account suspended)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
github: zarzet
|
||||
ko_fi: zarzet
|
||||
buy_me_a_coffee: zarzet
|
||||
|
||||
|
||||
@@ -71,9 +71,9 @@ A: Some countries have restricted access to certain streaming service APIs. If d
|
||||
|
||||
### Want to support SpotiFLAC-Mobile?
|
||||
|
||||
_If this software is useful and brings you value, consider supporting the project by buying me a coffee. Your support helps keep development going._
|
||||
_If this software is useful and brings you value, consider supporting the project. Your support helps keep development going._
|
||||
|
||||
[](https://ko-fi.com/zarzet) <a href="https://www.buymeacoffee.com/zarzet" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 150px !important;" ></a>
|
||||
[](https://ko-fi.com/zarzet)
|
||||
|
||||
|
||||
## Disclaimer
|
||||
|
||||
@@ -17,6 +17,5 @@ class AppInfo {
|
||||
static const String originalGithubUrl = 'https://github.com/afkarxyz/SpotiFLAC';
|
||||
|
||||
static const String kofiUrl = 'https://ko-fi.com/zarzet';
|
||||
static const String bmacUrl = 'https://buymeacoffee.com/zarzet';
|
||||
static const String githubSponsorsUrl = 'https://github.com/sponsors/zarzet/';
|
||||
}
|
||||
|
||||
@@ -928,18 +928,6 @@ abstract class AppLocalizations {
|
||||
/// **'Support'**
|
||||
String get aboutSupport;
|
||||
|
||||
/// Donation link
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Buy me a coffee'**
|
||||
String get aboutBuyMeCoffee;
|
||||
|
||||
/// Subtitle for donation
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Support development on Ko-fi'**
|
||||
String get aboutBuyMeCoffeeSubtitle;
|
||||
|
||||
/// Section for app info
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
||||
@@ -469,13 +469,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Spendiere mir einen Kaffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle =>
|
||||
'Unterstütze die Entwicklung auf Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
@@ -3338,12 +3332,6 @@ class AppLocalizationsEsEs extends AppLocalizationsEs {
|
||||
@override
|
||||
String get aboutSupport => 'Soporte';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Invítame a un café';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Apoyar el desarrollo en Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'Aplicación';
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ class AppLocalizationsHi extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
|
||||
@@ -462,12 +462,6 @@ class AppLocalizationsId extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Dukungan';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Belikan saya kopi';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Dukung pengembangan di Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'Aplikasi';
|
||||
|
||||
|
||||
@@ -453,12 +453,6 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'サポート';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'コーヒーを買ってください';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Ko-fi で開発をサポートします';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'アプリ';
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
@@ -3337,12 +3331,6 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
@override
|
||||
String get aboutSupport => 'Apoiar';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Compre-me um café';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Apoie o desenvolvimento na Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'Aplicativo';
|
||||
|
||||
|
||||
@@ -470,12 +470,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Поддержка';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Купить мне кофе';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Поддержать разработку на Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'Приложение';
|
||||
|
||||
|
||||
@@ -464,12 +464,6 @@ class AppLocalizationsTr extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Destek';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Bana bir kahve ısmarla';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Ko-fi üzerinden uygulamayı destekle';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'Uygulama';
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
@@ -3348,12 +3342,6 @@ class AppLocalizationsZhCn extends AppLocalizationsZh {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
@@ -5494,12 +5482,6 @@ class AppLocalizationsZhTw extends AppLocalizationsZh {
|
||||
@override
|
||||
String get aboutSupport => 'Support';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffee => 'Buy me a coffee';
|
||||
|
||||
@override
|
||||
String get aboutBuyMeCoffeeSubtitle => 'Support development on Ko-fi';
|
||||
|
||||
@override
|
||||
String get aboutApp => 'App';
|
||||
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Spendiere mir einen Kaffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Unterstütze die Entwicklung auf Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -326,10 +326,6 @@
|
||||
"@aboutSocial": {"description": "Section for social links"},
|
||||
"aboutSupport": "Support",
|
||||
"@aboutSupport": {"description": "Section for support/donation links"},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {"description": "Donation link"},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {"description": "Subtitle for donation"},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {"description": "Section for app info"},
|
||||
"aboutVersion": "Version",
|
||||
|
||||
@@ -548,14 +548,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -548,14 +548,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Invítame a un café",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Apoyar el desarrollo en Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "Aplicación",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -587,15 +587,7 @@
|
||||
"aboutSupport": "Dukungan",
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Belikan saya kopi",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Dukung pengembangan di Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
},
|
||||
"aboutApp": "Aplikasi",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "コーヒーを買ってください",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Ko-fi で開発をサポートします",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "アプリ",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -548,14 +548,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -548,14 +548,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Compre-me um café",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Apoie o desenvolvimento na Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "Aplicativo",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Купить мне кофе",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Поддержать разработку на Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "Приложение",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Bana bir kahve ısmarla",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Ko-fi üzerinden uygulamayı destekle",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "Uygulama",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -548,14 +548,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -576,14 +576,6 @@
|
||||
"@aboutSupport": {
|
||||
"description": "Section for support/donation links"
|
||||
},
|
||||
"aboutBuyMeCoffee": "Buy me a coffee",
|
||||
"@aboutBuyMeCoffee": {
|
||||
"description": "Donation link"
|
||||
},
|
||||
"aboutBuyMeCoffeeSubtitle": "Support development on Ko-fi",
|
||||
"@aboutBuyMeCoffeeSubtitle": {
|
||||
"description": "Subtitle for donation"
|
||||
},
|
||||
"aboutApp": "App",
|
||||
"@aboutApp": {
|
||||
"description": "Section for app info"
|
||||
|
||||
@@ -255,21 +255,6 @@ class _DonateLinksCard extends StatelessWidget {
|
||||
endIndent: 16,
|
||||
color: colorScheme.outlineVariant.withValues(alpha: 0.3),
|
||||
),
|
||||
_DonateCardItem(
|
||||
title: 'Buy Me a Coffee',
|
||||
subtitle: 'buymeacoffee.com/zarzet',
|
||||
customIcon: const BmacIcon(size: 22, color: Colors.black87),
|
||||
color: const Color(0xFFFFDD00),
|
||||
url: AppInfo.bmacUrl,
|
||||
colorScheme: colorScheme,
|
||||
),
|
||||
Divider(
|
||||
height: 1,
|
||||
thickness: 1,
|
||||
indent: 74,
|
||||
endIndent: 16,
|
||||
color: colorScheme.outlineVariant.withValues(alpha: 0.3),
|
||||
),
|
||||
_DonateCardItem(
|
||||
title: 'GitHub Sponsors',
|
||||
subtitle: 'github.com/sponsors/zarzet',
|
||||
|
||||
@@ -84,83 +84,6 @@ class _KofiPainter extends CustomPainter {
|
||||
bool shouldRepaint(covariant CustomPainter oldDelegate) => false;
|
||||
}
|
||||
|
||||
class BmacIcon extends StatelessWidget {
|
||||
final double size;
|
||||
final Color color;
|
||||
|
||||
const BmacIcon({super.key, this.size = 22, this.color = Colors.black87});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return CustomPaint(
|
||||
size: Size(size, size),
|
||||
painter: _BmacPainter(color),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _BmacPainter extends CustomPainter {
|
||||
final Color color;
|
||||
_BmacPainter(this.color);
|
||||
|
||||
@override
|
||||
void paint(Canvas canvas, Size size) {
|
||||
final s = size.width;
|
||||
final paint = Paint()
|
||||
..color = color
|
||||
..style = PaintingStyle.fill;
|
||||
|
||||
// Cup body (slightly tapered)
|
||||
final cup = Path()
|
||||
..moveTo(s * 0.15, s * 0.35)
|
||||
..lineTo(s * 0.20, s * 0.82)
|
||||
..quadraticBezierTo(s * 0.20, s * 0.90, s * 0.28, s * 0.90)
|
||||
..lineTo(s * 0.56, s * 0.90)
|
||||
..quadraticBezierTo(s * 0.64, s * 0.90, s * 0.64, s * 0.82)
|
||||
..lineTo(s * 0.69, s * 0.35)
|
||||
..close();
|
||||
canvas.drawPath(cup, paint);
|
||||
|
||||
// Cup rim
|
||||
final rim = RRect.fromRectAndRadius(
|
||||
Rect.fromLTWH(s * 0.10, s * 0.30, s * 0.64, s * 0.10),
|
||||
Radius.circular(s * 0.05),
|
||||
);
|
||||
canvas.drawRRect(rim, paint);
|
||||
|
||||
// Handle
|
||||
final handlePaint = Paint()
|
||||
..color = color
|
||||
..style = PaintingStyle.stroke
|
||||
..strokeWidth = s * 0.07
|
||||
..strokeCap = StrokeCap.round;
|
||||
|
||||
final handle = Path()
|
||||
..moveTo(s * 0.69, s * 0.42)
|
||||
..quadraticBezierTo(s * 0.90, s * 0.42, s * 0.90, s * 0.56)
|
||||
..quadraticBezierTo(s * 0.90, s * 0.70, s * 0.69, s * 0.70);
|
||||
canvas.drawPath(handle, handlePaint);
|
||||
|
||||
// Steam
|
||||
final steamPaint = Paint()
|
||||
..color = color.withValues(alpha: 0.5)
|
||||
..style = PaintingStyle.stroke
|
||||
..strokeWidth = s * 0.04
|
||||
..strokeCap = StrokeCap.round;
|
||||
|
||||
for (var i = 0; i < 3; i++) {
|
||||
final sx = s * (0.26 + i * 0.14);
|
||||
final steam = Path()
|
||||
..moveTo(sx, s * 0.26)
|
||||
..quadraticBezierTo(sx + s * 0.03, s * 0.18, sx, s * 0.10);
|
||||
canvas.drawPath(steam, steamPaint);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
bool shouldRepaint(covariant CustomPainter oldDelegate) => false;
|
||||
}
|
||||
|
||||
class GitHubIcon extends StatelessWidget {
|
||||
final double size;
|
||||
final Color color;
|
||||
|
||||
Reference in New Issue
Block a user