Restore donate button on Android only
This commit is contained in:
parent
60d3d0a756
commit
3c984c445c
2 changed files with 11 additions and 3 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:frosty/core/auth/auth_store.dart';
|
||||
|
|
@ -27,8 +29,14 @@ class Settings extends StatelessWidget {
|
|||
appBar: AppBar(
|
||||
title: const Text('Settings'),
|
||||
actions: [
|
||||
if (Platform.isAndroid)
|
||||
IconButton(
|
||||
tooltip: 'Support the App',
|
||||
onPressed: () => launch('https://www.buymeacoffee.com/tommychow'),
|
||||
icon: const FaIcon(FontAwesomeIcons.donate),
|
||||
),
|
||||
IconButton(
|
||||
tooltip: 'View source on GitHub',
|
||||
tooltip: 'View Source on GitHub',
|
||||
onPressed: () => launch('https://github.com/tommyxchow/frosty'),
|
||||
icon: const FaIcon(FontAwesomeIcons.github),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ abstract class _SettingsStoreBase with Store {
|
|||
var showThumbnailUptime = false;
|
||||
|
||||
// Video Settings
|
||||
@JsonKey(defaultValue: false)
|
||||
@JsonKey(defaultValue: true)
|
||||
@observable
|
||||
var showVideo = false;
|
||||
var showVideo = true;
|
||||
|
||||
@JsonKey(defaultValue: true)
|
||||
@observable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue