Skip to content
Permalink
Browse files

full working demo

  • Loading branch information...
codediodeio committed Apr 3, 2019
0 parents commit aa510592b8a36f0324aba7d297c143ed37d09528
Showing with 1,576 additions and 0 deletions.
  1. +70 −0 .gitignore
  2. +10 −0 .metadata
  3. +10 −0 README.md
  4. +61 −0 android/app/build.gradle
  5. +7 −0 android/app/src/debug/AndroidManifest.xml
  6. +33 −0 android/app/src/main/AndroidManifest.xml
  7. +13 −0 android/app/src/main/java/com/example/fl_flare/MainActivity.java
  8. +12 −0 android/app/src/main/res/drawable/launch_background.xml
  9. BIN android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  10. BIN android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  11. BIN android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  12. BIN android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  13. BIN android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  14. +8 −0 android/app/src/main/res/values/styles.xml
  15. +7 −0 android/app/src/profile/AndroidManifest.xml
  16. +29 −0 android/build.gradle
  17. +1 −0 android/gradle.properties
  18. +6 −0 android/gradle/wrapper/gradle-wrapper.properties
  19. +15 −0 android/settings.gradle
  20. BIN assets/GiphyClone.flr2d
  21. BIN assets/camera.flr
  22. BIN assets/head.flr
  23. BIN assets/heart.flr
  24. BIN assets/house.flr
  25. BIN assets/planet.flr
  26. +26 −0 ios/Flutter/AppFrameworkInfo.plist
  27. +1 −0 ios/Flutter/Debug.xcconfig
  28. +1 −0 ios/Flutter/Release.xcconfig
  29. +506 −0 ios/Runner.xcodeproj/project.pbxproj
  30. +7 −0 ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  31. +93 −0 ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  32. +7 −0 ios/Runner.xcworkspace/contents.xcworkspacedata
  33. +6 −0 ios/Runner/AppDelegate.h
  34. +13 −0 ios/Runner/AppDelegate.m
  35. +122 −0 ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
  36. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
  37. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
  38. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
  39. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
  40. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
  41. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
  42. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
  43. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
  44. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
  45. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
  46. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
  47. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
  48. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
  49. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
  50. BIN ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
  51. +23 −0 ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
  52. BIN ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
  53. BIN ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
  54. BIN ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
  55. +5 −0 ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
  56. +37 −0 ios/Runner/Base.lproj/LaunchScreen.storyboard
  57. +26 −0 ios/Runner/Base.lproj/Main.storyboard
  58. +45 −0 ios/Runner/Info.plist
  59. +9 −0 ios/Runner/main.m
  60. +102 −0 lib/main.dart
  61. +160 −0 pubspec.lock
  62. +75 −0 pubspec.yaml
  63. +30 −0 test/widget_test.dart
@@ -0,0 +1,70 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# Visual Studio Code related
.vscode/

# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.packages
.pub-cache/
.pub/
/build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: 8661d8aecd626f7f57ccbcb735553edc05a2e713
channel: stable

project_type: app
@@ -0,0 +1,10 @@
# Episode 177 - Flutter Flare Demo

Create a clone of the Giphy mobile app bottom navigation bar from scratch.

![flutter flare giphy clone](https://firebasestorage.googleapis.com/v0/b/fireship-app.appspot.com/o/assets%2F177-flare%2Fflutter-flare-demo.gif?alt=media&token=3aaed583-c37b-49dc-8b35-f5532ceb8487)

```
git clone
flutter run
```
@@ -0,0 +1,61 @@
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 28

lintOptions {
disable 'InvalidPackage'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.fl_flare"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}

flutter {
source '../..'
}

dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.fl_flare">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
@@ -0,0 +1,33 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.fl_flare">

<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="fl_flare"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- This keeps the window background of the activity showing
until Flutter renders its first frame. It can be removed if
there is no splash screen (such as the default splash screen
defined in @style/LaunchTheme). -->
<meta-data
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
@@ -0,0 +1,13 @@
package com.example.fl_flare;

import android.os.Bundle;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;

public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this);
}
}
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.fl_flare">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
@@ -0,0 +1,29 @@
buildscript {
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}

allprojects {
repositories {
google()
jcenter()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}
@@ -0,0 +1 @@
org.gradle.jvmargs=-Xmx1536M
@@ -0,0 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
@@ -0,0 +1,15 @@
include ':app'

def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()

def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}

plugins.each { name, path ->
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
include ":$name"
project(":$name").projectDir = pluginDirectory
}
Binary file not shown.
BIN +2.16 KB assets/camera.flr
Binary file not shown.
BIN +1.14 KB assets/head.flr
Binary file not shown.
BIN +944 Bytes assets/heart.flr
Binary file not shown.
BIN +2.39 KB assets/house.flr
Binary file not shown.
BIN +3.32 KB assets/planet.flr
Binary file not shown.
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
</dict>
</plist>
@@ -0,0 +1 @@
#include "Generated.xcconfig"
@@ -0,0 +1 @@
#include "Generated.xcconfig"
Oops, something went wrong.

0 comments on commit aa51059

Please sign in to comment.
You can’t perform that action at this time.