├── .firebase
└── hosting.YnVpbGRcd2Vi.cache
├── .firebaserc
├── .github
└── workflows
│ └── dart.yml
├── .gitignore
├── .metadata
├── .vscode
└── launch.json
├── README.md
├── analysis_options.yaml
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── fun_with_flutter_website
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── icons
│ └── CustomIcons.ttf
└── images
│ ├── course_background.png
│ └── funwith_favicon.png
├── firebase.json
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── application
│ ├── auth
│ │ ├── auth_bloc.dart
│ │ ├── auth_bloc.freezed.dart
│ │ ├── auth_event.dart
│ │ ├── auth_state.dart
│ │ └── sign_in_form
│ │ │ ├── sign_in_form_bloc.dart
│ │ │ ├── sign_in_form_bloc.freezed.dart
│ │ │ ├── sign_in_form_event.dart
│ │ │ └── sign_in_form_state.dart
│ ├── blog
│ │ ├── blog_bloc.dart
│ │ ├── blog_bloc.freezed.dart
│ │ ├── blog_event.dart
│ │ └── blog_state.dart
│ ├── contact_form
│ │ └── bloc
│ │ │ ├── contact_form_bloc.dart
│ │ │ ├── contact_form_bloc.freezed.dart
│ │ │ ├── contact_form_event.dart
│ │ │ └── contact_form_state.dart
│ ├── filtered_blog
│ │ ├── filtered_blog_bloc.dart
│ │ ├── filtered_blog_bloc.freezed.dart
│ │ ├── filtered_blog_event.dart
│ │ └── filtered_blog_state.dart
│ ├── page
│ │ ├── page_bloc.dart
│ │ ├── page_bloc.freezed.dart
│ │ ├── page_event.dart
│ │ └── page_state.dart
│ ├── simple_bloc_delegate.dart
│ └── theme
│ │ └── bloc
│ │ ├── theme_bloc.dart
│ │ ├── theme_bloc.freezed.dart
│ │ ├── theme_event.dart
│ │ └── theme_state.dart
├── domain
│ ├── auth
│ │ ├── auth_failure.dart
│ │ ├── auth_failure.freezed.dart
│ │ ├── i_auth_facade.dart
│ │ ├── user.dart
│ │ ├── user.freezed.dart
│ │ └── value_objects.dart
│ ├── blog
│ │ ├── blog.dart
│ │ ├── blog.freezed.dart
│ │ ├── blog.g.dart
│ │ ├── blog_failure.dart
│ │ ├── blog_failure.freezed.dart
│ │ ├── i_blog_repository.dart
│ │ ├── post_data.dart
│ │ ├── post_data.freezed.dart
│ │ ├── post_data.g.dart
│ │ ├── tag.dart
│ │ ├── tag.freezed.dart
│ │ └── tag.g.dart
│ ├── contact_form
│ │ ├── contact_form.dart
│ │ ├── contact_form.freezed.dart
│ │ ├── contact_form_failure.dart
│ │ ├── contact_form_failure.freezed.dart
│ │ ├── i_contact_form_repository.dart
│ │ └── value_objects.dart
│ └── core
│ │ ├── errors.dart
│ │ ├── failures.dart
│ │ ├── failures.freezed.dart
│ │ ├── value_objects.dart
│ │ ├── value_transformers.dart
│ │ └── value_validators.dart
├── infrastructure
│ ├── auth
│ │ ├── firebase_auth_facade.dart
│ │ ├── firebase_auth_service.dart
│ │ └── firebase_user_mapper.dart
│ ├── blog
│ │ ├── blog_api.dart
│ │ ├── blog_repository.dart
│ │ ├── dev_blog_repository.dart
│ │ └── register_module.dart
│ ├── contact_form
│ │ ├── contact_form_api.dart
│ │ └── contact_form_repository.dart
│ ├── core
│ │ ├── firebase_injectable_module.dart
│ │ └── urls.dart
│ └── url_repository.dart
├── injection.dart
├── injection.iconfig.dart
├── main.dart
└── presentation
│ ├── app
│ ├── app.dart
│ └── components
│ │ ├── app_page.dart
│ │ └── error_listener.dart
│ ├── common
│ ├── accent_button.dart
│ ├── error_widget.dart
│ ├── header.dart
│ ├── info_bar.dart
│ └── loading_indicator.dart
│ ├── core
│ ├── adaptive_dialog.dart
│ ├── adaptive_scaffold.dart
│ ├── app_widget.dart
│ ├── constants.dart
│ ├── extensions.dart
│ ├── html_element_widget.dart
│ ├── iframe_widget.dart
│ ├── notification_helper.dart
│ ├── themes.dart
│ └── utils
│ │ ├── custom_icons_icons.dart
│ │ ├── tag_name_generator.dart
│ │ └── url_handler.dart
│ ├── pages
│ ├── blog
│ │ ├── blog_page.dart
│ │ └── widgets
│ │ │ ├── blog_post_card.dart
│ │ │ ├── blog_posts.dart
│ │ │ └── tag_widgets.dart
│ ├── contact
│ │ ├── contact_page.dart
│ │ └── widgets
│ │ │ └── contact_us_form.dart
│ └── home
│ │ ├── components
│ │ └── sliver_course_header.dart
│ │ ├── home_page.dart
│ │ └── widgets
│ │ └── sliver_course_header.dart
│ ├── routes
│ ├── router.dart
│ └── router.gr.dart
│ └── sign_in
│ ├── sign_in_page.dart
│ └── widgets
│ └── sign_in_form.dart
├── pubspec.lock
├── pubspec.yaml
└── web
├── assets
├── CustomIcons.ttf
├── DMSerifDisplay-Regular.ttf
├── FontManifest.json
├── MaterialIcons-Regular.ttf
├── OpenSans-Regular.ttf
├── WorkSans-Regular.ttf
└── images
│ ├── course_background.png
│ └── funwith_favicon.png
└── index.html
/.firebase/hosting.YnVpbGRcd2Vi.cache:
--------------------------------------------------------------------------------
1 | 404.html,1593751626256,daa499dd96d8229e73235345702ba32f0793f0c8e5c0d30e40e37a5872be57aa
2 | assets/CustomIcons.ttf,1589042644000,ca4c0d29da7794a9d333f56daede6dc00cb6cead7a00d17f8375ac9d8868aa40
3 | assets/DMSerifDisplay-Regular.ttf,1589042644000,fe46e71d87a9c180fbe917ce28eeb66845adeb0546187a69d02f82c9d80d767b
4 | assets/FontManifest.json,1589042644000,f324383d06cc87dd3f3af0d031f55242fb62b14b45b789511836196da6eef86a
5 | assets/MaterialIcons-Regular.ttf,1589042644000,f33d9640ccc280d7d0a2ab55f2a4e25ebf548c3c7027b97964168231c101c2bb
6 | assets/OpenSans-Regular.ttf,1589042644000,629804cdd416aa0ef22aaece8d5399d7fdc1b621b4d6450eaa5b036482d69b6d
7 | assets/WorkSans-Regular.ttf,1589042644000,884acedb1c889e60633f6c873556aae07ada0011a487752381d21c88d22dce72
8 | assets/assets/icons/CustomIcons.ttf,1589042644000,ca4c0d29da7794a9d333f56daede6dc00cb6cead7a00d17f8375ac9d8868aa40
9 | assets/assets/images/course_background.png,1593364023322,4c1a11af341434552f30f8c381204dabc167a8dec0c37cfa54a309eec2ecbe78
10 | assets/assets/images/funwith_favicon.png,1589042644000,df93db2263f38f11c2fe13cf864eccfa9fb6704dbdb6a2ce8a7a2c02556db089
11 | assets/fonts/MaterialIcons-Regular.ttf,1589869440288,91d9d27a9faaaa741c2bb316421210a98dce9d7ee6c59f323e223c82216e2c3b
12 | assets/images/course_background.png,1593623056926,4c1a11af341434552f30f8c381204dabc167a8dec0c37cfa54a309eec2ecbe78
13 | assets/images/funwith_favicon.png,1589042644000,df93db2263f38f11c2fe13cf864eccfa9fb6704dbdb6a2ce8a7a2c02556db089
14 | assets/packages/cupertino_icons/assets/CupertinoIcons.ttf,1589869306342,894da28a77592818df91b2299df5c1005b8ab18adcd6798113667e58eaaa5d10
15 | flutter_service_worker.js,1593753908207,38c6086d3c204cf9a49b6cee0b2f24d26bdb83ed097bc889c01a93582e486915
16 | index.html,1593750463565,5898eb1266a6764b15cb476e5687d8877f9877d92663d8065eedfa62e7fec181
17 | assets/AssetManifest.json,1593753907323,d027569ad0ce27b9cb5a90c7560f3b8ca595cb7bcfa197adfa651ce1432105bf
18 | assets/NOTICES,1593753907324,02dbe4a4df9d39c96f8a6a7645852a1fb1ab741687755a85838f076eed99fa56
19 | main.dart.js,1593753905704,267797e23cc49a0c8bf7d86ded0bd148475da8270fe9f64ae2612877741f1f70
20 | main.dart.js.map,1593753906800,18b200f683c6be9929d1dbe1c3033436ec4032a482a51c2b81cc3f3bcde2be7b
21 |
--------------------------------------------------------------------------------
/.firebaserc:
--------------------------------------------------------------------------------
1 | {
2 | "projects": {
3 | "default": "fun-with"
4 | },
5 | "targets": {
6 | "fun-with": {
7 | "hosting": {
8 | "app": [
9 | "fun-with"
10 | ]
11 | }
12 | }
13 | }
14 | }
--------------------------------------------------------------------------------
/.github/workflows/dart.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 | on:
3 | push:
4 | branches:
5 | - master
6 | pull_request:
7 | branches:
8 | - master
9 | jobs:
10 | build_web:
11 | name: Build Flutter (Web)
12 | runs-on: ubuntu-latest
13 | steps:
14 | - uses: actions/checkout@v1
15 | - uses: subosito/flutter-action@v1
16 | with:
17 | channel: 'master'
18 | - run: flutter pub get
19 | - run: flutter config --enable-web
20 | - run: flutter build web
21 | - name: Archive Production Artifact
22 | uses: actions/upload-artifact@master
23 | with:
24 | name: web-build
25 | path: build/web
26 | deploy_web:
27 | name: Deploy Web to Firebase Hosting
28 | needs: build_web
29 | runs-on: ubuntu-latest
30 | steps:
31 | - name: Checkout Repo
32 | uses: actions/checkout@master
33 | - name: Download Artifact
34 | uses: actions/download-artifact@master
35 | with:
36 | name: web-build
37 | - name: Deploy to Firebase
38 | uses: w9jds/firebase-action@master
39 | with:
40 | args: deploy --only hosting:app
41 | env:
42 | FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
43 | PROJECT_ID: default
44 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | /build/
32 |
33 | # Android related
34 | **/android/**/gradle-wrapper.jar
35 | **/android/.gradle
36 | **/android/captures/
37 | **/android/gradlew
38 | **/android/gradlew.bat
39 | **/android/local.properties
40 | **/android/**/GeneratedPluginRegistrant.java
41 |
42 | # iOS/XCode related
43 | **/ios/**/*.mode1v3
44 | **/ios/**/*.mode2v3
45 | **/ios/**/*.moved-aside
46 | **/ios/**/*.pbxuser
47 | **/ios/**/*.perspectivev3
48 | **/ios/**/*sync/
49 | **/ios/**/.sconsign.dblite
50 | **/ios/**/.tags*
51 | **/ios/**/.vagrant/
52 | **/ios/**/DerivedData/
53 | **/ios/**/Icon?
54 | **/ios/**/Pods/
55 | **/ios/**/.symlinks/
56 | **/ios/**/profile
57 | **/ios/**/xcuserdata
58 | **/ios/.generated/
59 | **/ios/Flutter/App.framework
60 | **/ios/Flutter/Flutter.framework
61 | **/ios/Flutter/Generated.xcconfig
62 | **/ios/Flutter/app.flx
63 | **/ios/Flutter/app.zip
64 | **/ios/Flutter/flutter_assets/
65 | **/ios/Flutter/flutter_export_environment.sh
66 | **/ios/ServiceDefinitions.json
67 | **/ios/Runner/GeneratedPluginRegistrant.*
68 |
69 | # Web related
70 | lib/generated_plugin_registrant.dart
71 |
72 | # Exceptions to above rules.
73 | !**/ios/**/default.mode1v3
74 | !**/ios/**/default.mode2v3
75 | !**/ios/**/default.pbxuser
76 | !**/ios/**/default.perspectivev3
77 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
78 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: af07bb50faecbfe7d576113058c94cae0e21b91e
8 | channel: master
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "Flutter",
9 | "request": "launch",
10 | "type": "dart",
11 | "args": [
12 | "--web-hostname",
13 | "localhost",
14 | "--web-port",
15 | "5000"
16 | ]
17 | }
18 | ]
19 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Fun with Flutter Website
2 |
3 | Source code to the [Fun with Flutter website](https://funwith.app), a companion application to the [Fun with Flutter YouTube Channel](https://www.youtube.com/funwithflutter)
4 |
5 | To serve as a learning opportunity for myself, as well as other. Cheers.
6 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:lint/analysis_options.yaml
2 |
3 | # Specify analysis options.
4 | #
5 | # For a list of lints, see: http://dart-lang.github.io/linter/lints/
6 | # See the configuration guide for more
7 | # https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
8 |
9 | analyzer:
10 | exclude:
11 | - "**/*.g.dart"
12 | - "**/*.gr.dart"
13 | - "**/*.iconfig.dart"
14 | - "**/*.freezed.dart"
15 | - "**/firebase_auth_facade.dart"
16 | # TODO: remove firebase_auth_facade from excludes once Firebase throws
17 | # [PlatformException] or some other exception that can be caught
18 | # - 'bin/cache/**'
19 | # - "lib/**/*.g.dart"
20 | # - "lib/**/*.gr.dart"
21 | # - "lib/**/*.freezed.dart"
22 | # - "lib/injection.iconfig.dart"
23 | strong-mode:
24 | implicit-casts: false
25 | implicit-dynamic: false
26 | errors:
27 | # TODO: enable these two lint once firebase_auth throws
28 | # [PlatformException] or some other exception that can be caught
29 | # argument_type_not_assignable: ignore
30 | # switch_expression_not_assignable: ignore
31 |
32 | # treat missing required parameters as a warning (not a hint)
33 | missing_required_param: error
34 | # treat missing returns as a warning (not a hint)
35 | missing_return: error
36 | # allow having TODOs in the code
37 | todo: ignore
38 | # Ignore analyzer hints for updating pubspecs when using Future or
39 | # Stream and not importing dart:async
40 | # Please see https://github.com/flutter/flutter/pull/24528 for details.
41 | sdk_version_async_exported_from_core: ignore
42 |
43 | linter:
44 | rules:
45 | - prefer_relative_imports
46 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.fun_with_flutter_website"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | testImplementation 'junit:junit:4.12'
65 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
66 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
67 | }
68 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
20 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/fun_with_flutter_website/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.fun_with_flutter_website
2 |
3 | import android.os.Bundle
4 |
5 | import io.flutter.app.FlutterActivity
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun onCreate(savedInstanceState: Bundle?) {
10 | super.onCreate(savedInstanceState)
11 | GeneratedPluginRegistrant.registerWith(this)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.2.71'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
3 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/assets/icons/CustomIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/assets/icons/CustomIcons.ttf
--------------------------------------------------------------------------------
/assets/images/course_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/assets/images/course_background.png
--------------------------------------------------------------------------------
/assets/images/funwith_favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/assets/images/funwith_favicon.png
--------------------------------------------------------------------------------
/firebase.json:
--------------------------------------------------------------------------------
1 | {
2 | "hosting": {
3 | "target": "app",
4 | "public": "build/web",
5 | "ignore": [
6 | "firebase.json",
7 | "**/.*",
8 | "**/node_modules/**"
9 | ],
10 | "headers": [
11 | {
12 | "source": "**",
13 | "headers": [
14 | {
15 | "key": "Cache-Control",
16 | "value": "public, no-cache, max-age=31536000"
17 | }
18 | ]
19 | }
20 | ]
21 | }
22 | }
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/funwithflutter/fun-with-flutter-website/b163e23345901b1937c29da1d7bc18ad7283b879/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | fun_with_flutter_website
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/lib/application/auth/auth_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:bloc/bloc.dart';
4 | import 'package:dartz/dartz.dart';
5 | import 'package:flutter/foundation.dart';
6 | import 'package:freezed_annotation/freezed_annotation.dart';
7 | import 'package:injectable/injectable.dart';
8 | import 'package:meta/meta.dart';
9 |
10 | import '../../domain/auth/i_auth_facade.dart';
11 | import '../../domain/auth/user.dart';
12 |
13 | part 'auth_bloc.freezed.dart';
14 | part 'auth_event.dart';
15 | part 'auth_state.dart';
16 |
17 | @injectable
18 | class AuthBloc extends Bloc {
19 | final IAuthFacade _authFacade;
20 |
21 | AuthBloc(this._authFacade);
22 |
23 | @override
24 | AuthState get initialState {
25 | _subscribeToAuthStateChanged();
26 | return const AuthState.initial();
27 | }
28 |
29 | StreamSubscription