Skip to content

Commit

Permalink
Add Discord Link to Sidebar (#16)
Browse files Browse the repository at this point in the history
* Add Entries to Android Gitignore

* Updated Gitignore

Used modified version of https://www.gitignore.io/api/dart,swift,windows,flutter,androidstudio,visualstudiocode

* Add Url_Launcher to pubspec

https://pub.dartlang.org/packages/url_launcher

* Add Link to Discord Server to Sidebar
  • Loading branch information
thebeanogamer authored and REDACTED-REDACTED committed Jul 14, 2018
1 parent 41c50a0 commit ed3b0b5
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 6 deletions.
237 changes: 232 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,239 @@

# Created by https://www.gitignore.io/api/dart,swift,windows,flutter,androidstudio,visualstudiocode

### AndroidStudio ###
# Covers files to be ignored for android development using Android Studio.

# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle
.gradle/
build/

# Signing files
.signing/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio
/*/build/
/*/local.properties
/*/out
/*/*/build
/*/*/production
captures/
.navigation/
*.ipr
*~
*.swp

# Android Patch
gen-external-apklibs

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# NDK
obj/

# IntelliJ IDEA
*.iml
*.iws
/out/

# User-specific configurations
.idea

# OS-specific files
.DS_Store
.dart_tool/
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Legacy Eclipse project files
.classpath
.project
.cproject
.settings/

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.war
*.ear

# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
hs_err_pid*

## Plugin-specific files:

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Mongo Explorer plugin
.idea/mongoSettings.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### AndroidStudio Patch ###

!/gradle/wrapper/gradle-wrapper.jar

### Dart ###
# See https://www.dartlang.org/guides/libraries/private-files

# Files and directories created by pub
.dart_tool/
.packages
.pub/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock

build/
.idea/
.vscode/
.packages
# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/

# Avoid committing generated Javascript files:
*.dart.js
*.info.json # Produced by the --dump-info flag.
*.js # When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js_
*.js.deps
*.js.map

### Flutter ###
.flutter-plugins

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

### VisualStudioCode ###
.vscode/*

### Windows ###
# Windows thumbnail cache files
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk


# End of https://www.gitignore.io/api/dart,swift,windows,flutter,androidstudio,visualstudiocode
2 changes: 2 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
/build
/captures
GeneratedPluginRegistrant.java
/app/release
.idea
7 changes: 7 additions & 0 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';

import 'package:url_launcher/url_launcher.dart';

import 'package:firebase_database/firebase_database.dart';
import 'package:firebase_analytics/firebase_analytics.dart';

Expand Down Expand Up @@ -79,6 +81,11 @@ class _HomePageState extends State<HomePage> {
Navigator.pop(context);
});
}),
new ListItem(Icons.people, "Discord", (){setState(
(){
launch("https://discord.gg/Kf8n5rT");
});
}),
],
),
),
Expand Down
9 changes: 8 additions & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.5"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.3"
utf:
dependency: transitive
description:
Expand Down Expand Up @@ -486,5 +493,5 @@ packages:
source: hosted
version: "2.1.13"
sdks:
dart: ">=2.0.0-dev.52.0 <=2.0.0-dev.54.0.flutter-46ab040e58"
dart: ">=2.0.0-dev.52.0 <=2.0.0-dev.58.0.flutter-f981f09760"
flutter: ">=0.1.4 <2.0.0"
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
html2md: "^0.1.7"
flutter_markdown: "^0.1.5"
intl: "^0.15.6"
url_launcher: "^3.0.3"

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit ed3b0b5

Please sign in to comment.