Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
feat: github & discord buttons on settings screen
Browse files Browse the repository at this point in the history
Added a link to the github and discord in the `settings.dart` file also added the license
  • Loading branch information
Tricked-dev committed Feb 26, 2022
1 parent c8defcb commit 1f024e8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions lib/src/screens/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import 'package:flutter/material.dart' as flutter;
import 'package:flutter_acrylic/flutter_acrylic.dart' as flutter_acrylic;
import 'package:provider/provider.dart';
import 'package:tmodinstaller/config.dart';
import 'package:url_launcher/url_launcher.dart';
import 'dart:io';
import '../../theme.dart';

Expand Down Expand Up @@ -219,6 +220,30 @@ class _SettingsState extends State<Settings> {
},
),
),
biggerSpacer,
Row(
children: [
Container(
padding: const EdgeInsets.only(right: 4),
child: FilledButton(
child: const Text("Discord"),
onPressed: () async => launch("https://discord.gg/wU9kyjdJup"),
),
),
Container(
padding: const EdgeInsets.only(left: 4),
child: FilledButton(
child: const Text("Github"),
onPressed: () async =>
launch("https://github.com/Tricked-dev/tmodinstaller"),
),
)
],
),
spacer,
const Text(
"TMod Installer created by Tricked-dev licensed under: Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License."),

// OutlinedButton(
// child: Text("Change folder!"),
// onPressed: () async {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
version: 0.0.6

environment:
sdk: '>=2.16.0 <3.0.0'
Expand Down

0 comments on commit 1f024e8

Please sign in to comment.