├── ios
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── 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-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── RunnerTests
│ └── RunnerTests.swift
├── Podfile.lock
├── .gitignore
└── Podfile
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── manifest.json
└── index.html
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── 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
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── flutter_tips_and_examples
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── assets
├── audios
│ └── example_audio.mp3
└── images
│ └── junior_logo_white.png
├── README.md
├── .gitignore
├── lib
├── 12_enhanced_enums.dart
├── 05_lottie_animations_with_color_filter.dart
├── 02_interactive_drawing_canvas.dart
├── 11_app_bar_banner_with_animation.dart
├── 04_copy_and_paste.dart
├── 17_funnel_chart.dart
├── 06_carousel_slider.dart
├── 15_digital_signature.dart
├── 10_popover.dart
├── 01_debounce_and_form_validation.dart
├── 07_avatar_stack_animation.dart
├── 08_text_and_image_animation.dart
├── 18_radial_bar_chart.dart
├── 09_speech_to_text_with_whisper.dart
├── 03_bar_charts.dart
├── 14_ultra_gradients.dart
├── 19_analytics_view.dart
├── 13_2d_scrolling.dart
└── 16_sparkline_chart.dart
├── pubspec.yaml
├── analysis_options.yaml
├── .metadata
└── pubspec.lock
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/assets/audios/example_audio.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/assets/audios/example_audio.mp3
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/assets/images/junior_logo_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/assets/images/junior_logo_white.png
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/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/maxonflutter/Flutter-Tips-And-Examples/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxonflutter/Flutter-Tips-And-Examples/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_tips_and_examples/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_tips_and_examples
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/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.
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/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/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - url_launcher_ios (0.0.1):
4 | - Flutter
5 |
6 | DEPENDENCIES:
7 | - Flutter (from `Flutter`)
8 | - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
9 |
10 | EXTERNAL SOURCES:
11 | Flutter:
12 | :path: Flutter
13 | url_launcher_ios:
14 | :path: ".symlinks/plugins/url_launcher_ios/ios"
15 |
16 | SPEC CHECKSUMS:
17 | Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
18 | url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
19 |
20 | PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189
21 |
22 | COCOAPODS: 1.12.1
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # flutter_tips_and_examples
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.3.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
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 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
45 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
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 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/12_enhanced_enums.dart:
--------------------------------------------------------------------------------
1 | // Enhanced Enums
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | // Enums are a special type of class that represents a group of constants (unchangeable variables, like final variables).
5 | // enum Fruit { apple, banana, orange }
6 |
7 | mixin VitaminCContent {
8 | bool get hasHighVitaminC;
9 | }
10 |
11 | // Enhanced Enums can have properties and methods.
12 | enum Fruit with VitaminCContent {
13 | apple('Red', false),
14 | banana('Yellow', false),
15 | orange('Orange', true);
16 |
17 | final String color;
18 | final bool hasHighVitaminC;
19 |
20 | const Fruit(
21 | this.color,
22 | this.hasHighVitaminC,
23 | );
24 |
25 | String describeColor() => 'The color of this fruit is $color.';
26 | }
27 |
28 | // Enhanced Enums can have constructors and generic types.
29 | enum Box {
30 | small(10),
31 | medium(15.5),
32 | large('20');
33 |
34 | final T dimension;
35 |
36 | const Box(this.dimension);
37 | }
38 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_tips_and_examples
2 | description: A new Flutter project.
3 | publish_to: 'none'
4 | version: 1.0.0+1
5 |
6 | environment:
7 | sdk: '>=3.0.0 <4.0.0'
8 |
9 | dependencies:
10 | flutter:
11 | sdk: flutter
12 | cupertino_icons: ^1.0.2
13 | lottie: ^2.4.0
14 | flutter_animate: ^4.2.0
15 | http: ^1.1.0
16 | http_parser: ^4.0.2
17 | carousel_slider: ^4.2.1
18 | dots_indicator: ^3.0.0
19 | popover: ^0.2.8+2
20 | url_launcher: ^6.1.12
21 | signature: ^5.4.0
22 | syncfusion_flutter_charts: ^24.1.41
23 |
24 | dev_dependencies:
25 | flutter_test:
26 | sdk: flutter
27 | flutter_lints: ^2.0.0
28 |
29 |
30 | flutter:
31 | uses-material-design: true
32 |
33 | assets:
34 | - assets/
35 | - assets/images/
36 | - assets/videos/
37 | - assets/audios/
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "flutter_tips_and_examples",
3 | "short_name": "flutter_tips_and_examples",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/lib/05_lottie_animations_with_color_filter.dart:
--------------------------------------------------------------------------------
1 | // Lottie Animation in Flutter apps by maxonflutter
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | import 'package:flutter/material.dart';
5 | import 'package:lottie/lottie.dart';
6 |
7 | void main() {
8 | runApp(const MyApp());
9 | }
10 |
11 | class MyApp extends StatelessWidget {
12 | const MyApp({super.key});
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return MaterialApp(
17 | theme: ThemeData.light(useMaterial3: true),
18 | home: const LottieAnimationExample(),
19 | );
20 | }
21 | }
22 |
23 | class LottieAnimationExample extends StatelessWidget {
24 | const LottieAnimationExample({super.key});
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | return Scaffold(
29 | appBar: AppBar(
30 | title: const Text('Animations with Lottie'),
31 | ),
32 | body: Column(
33 | children: [
34 | ColorFiltered(
35 | colorFilter: ColorFilter.mode(
36 | Theme.of(context).colorScheme.primary,
37 | BlendMode.color,
38 | ),
39 | child: Lottie.asset(
40 | 'assets/message_bubble.json',
41 | repeat: true,
42 | reverse: true,
43 | height: 300,
44 | width: double.infinity,
45 | ),
46 | ),
47 | ],
48 | ),
49 | );
50 | }
51 | }
52 |
53 | // https://lottiefiles.com/animations/pizza-VnnHMy9OOV
54 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '11.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | target 'RunnerTests' do
36 | inherit! :search_paths
37 | end
38 | end
39 |
40 | post_install do |installer|
41 | installer.pods_project.targets.each do |target|
42 | flutter_additional_ios_build_settings(target)
43 | end
44 | end
45 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
14 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
29 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/.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.
5 |
6 | version:
7 | revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
17 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
18 | - platform: android
19 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
20 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
21 | - platform: ios
22 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
23 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
24 | - platform: linux
25 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
26 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
27 | - platform: macos
28 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
29 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
30 | - platform: web
31 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
32 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
33 | - platform: windows
34 | create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
35 | base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Flutter Tips And Examples
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | flutter_tips_and_examples
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 | UIApplicationSupportsIndirectInputEvents
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | flutter_tips_and_examples
33 |
34 |
35 |
39 |
40 |
41 |
42 |
43 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/lib/02_interactive_drawing_canvas.dart:
--------------------------------------------------------------------------------
1 | // Interactive Drawing Canvas by maxonflutter
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | import 'package:flutter/material.dart';
5 |
6 | void main() {
7 | runApp(const MyApp());
8 | }
9 |
10 | class MyApp extends StatelessWidget {
11 | const MyApp({super.key});
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return MaterialApp(
16 | theme: ThemeData.light(useMaterial3: true),
17 | home: const DrawingCanvas(),
18 | );
19 | }
20 | }
21 |
22 | class DrawingCanvas extends StatefulWidget {
23 | const DrawingCanvas({super.key});
24 |
25 | @override
26 | State createState() => _DrawingCanvasState();
27 | }
28 |
29 | class _DrawingCanvasState extends State {
30 | List offsets = [];
31 |
32 | @override
33 | Widget build(BuildContext context) {
34 | return Scaffold(
35 | body: GestureDetector(
36 | onPanUpdate: (DragUpdateDetails details) {
37 | setState(() {
38 | offsets.add(details.globalPosition);
39 | });
40 | },
41 | onPanEnd: (DragEndDetails details) => setState(() {}),
42 | child: CustomPaint(
43 | painter: Draw(offsets: offsets),
44 | size: Size.infinite,
45 | ),
46 | ),
47 | floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
48 | floatingActionButton: FloatingActionButton.extended(
49 | icon: const Icon(Icons.clear),
50 | label: const Text('Clear'),
51 | onPressed: () {
52 | setState(() => offsets.clear());
53 | },
54 | ),
55 | );
56 | }
57 | }
58 |
59 | class Draw extends CustomPainter {
60 | const Draw({required this.offsets});
61 |
62 | final List offsets;
63 |
64 | @override
65 | void paint(Canvas canvas, Size size) {
66 | Paint paint = Paint();
67 | paint.color = Colors.blue.shade900;
68 | paint.strokeWidth = 5.0;
69 |
70 | for (int i = 0; i < offsets.length - 1; i++) {
71 | canvas.drawLine(offsets[i], offsets[i + 1], paint);
72 | }
73 | }
74 |
75 | @override
76 | bool shouldRepaint(Draw oldDelegate) => true;
77 | }
78 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 | namespace "com.example.flutter_tips_and_examples"
30 | compileSdkVersion flutter.compileSdkVersion
31 | ndkVersion flutter.ndkVersion
32 |
33 | compileOptions {
34 | sourceCompatibility JavaVersion.VERSION_1_8
35 | targetCompatibility JavaVersion.VERSION_1_8
36 | }
37 |
38 | kotlinOptions {
39 | jvmTarget = '1.8'
40 | }
41 |
42 | sourceSets {
43 | main.java.srcDirs += 'src/main/kotlin'
44 | }
45 |
46 | defaultConfig {
47 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
48 | applicationId "com.example.flutter_tips_and_examples"
49 | // You can update the following values to match your application needs.
50 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
51 | minSdkVersion flutter.minSdkVersion
52 | targetSdkVersion flutter.targetSdkVersion
53 | versionCode flutterVersionCode.toInteger()
54 | versionName flutterVersionName
55 | }
56 |
57 | buildTypes {
58 | release {
59 | // TODO: Add your own signing config for the release build.
60 | // Signing with the debug keys for now, so `flutter run --release` works.
61 | signingConfig signingConfigs.debug
62 | }
63 | }
64 | }
65 |
66 | flutter {
67 | source '../..'
68 | }
69 |
70 | dependencies {
71 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
72 | }
73 |
--------------------------------------------------------------------------------
/lib/11_app_bar_banner_with_animation.dart:
--------------------------------------------------------------------------------
1 | // App bar with an animated banner
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | import 'dart:ui';
5 |
6 | import 'package:flutter/material.dart';
7 | import 'package:flutter_animate/flutter_animate.dart';
8 | import 'package:url_launcher/url_launcher.dart';
9 |
10 | void main() {
11 | runApp(const MyApp());
12 | }
13 |
14 | class MyApp extends StatelessWidget {
15 | const MyApp({super.key});
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return MaterialApp(
20 | debugShowCheckedModeBanner: false,
21 | theme: ThemeData.light(useMaterial3: true),
22 | home: const AppBarWithAnimatedBanner(),
23 | );
24 | }
25 | }
26 |
27 | class AppBarWithAnimatedBanner extends StatelessWidget {
28 | const AppBarWithAnimatedBanner({Key? key}) : super(key: key);
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | return Scaffold(
33 | appBar: AppBar(
34 | backgroundColor: Colors.black,
35 | title: Image.asset(
36 | 'assets/images/junior_logo_white.png',
37 | height: 48.0,
38 | ),
39 | bottom: const AppBarBanner(),
40 | ),
41 | body: Container(),
42 | );
43 | }
44 | }
45 |
46 | class AppBarBanner extends StatelessWidget implements PreferredSizeWidget {
47 | const AppBarBanner({super.key});
48 |
49 | @override
50 | Widget build(BuildContext context) {
51 | return Container(
52 | height: 56.0,
53 | width: double.infinity,
54 | color: const Color(0XFF982043),
55 | child: InkWell(
56 | onTap: () async {
57 | await launchUrl(
58 | Uri.parse(
59 | 'https://junior.atomsbox.com',
60 | ),
61 | );
62 | },
63 | child: Row(
64 | mainAxisAlignment: MainAxisAlignment.center,
65 | children: [
66 | Text(
67 | 'Junior AI works in your GitHub. Install it now!',
68 | style: Theme.of(context)
69 | .textTheme
70 | .bodyMedium!
71 | .copyWith(color: Colors.white),
72 | ),
73 | const SizedBox(width: 8.0),
74 | const Icon(Icons.launch),
75 | ],
76 | ),
77 | ),
78 | )
79 | .animate(
80 | onComplete: (controller) => controller.repeat(),
81 | )
82 | .shimmer(
83 | duration: const Duration(milliseconds: 2000),
84 | delay: const Duration(milliseconds: 1000),
85 | );
86 | }
87 |
88 | @override
89 | Size get preferredSize => const Size.fromHeight(56.0);
90 | }
91 |
--------------------------------------------------------------------------------
/lib/04_copy_and_paste.dart:
--------------------------------------------------------------------------------
1 | // Copy & Paste in Flutter apps by maxonflutter
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter/services.dart' show Clipboard, ClipboardData;
6 |
7 | void main() {
8 | runApp(const MyApp());
9 | }
10 |
11 | class MyApp extends StatelessWidget {
12 | const MyApp({super.key});
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return MaterialApp(
17 | theme: ThemeData.light(useMaterial3: true),
18 | home: const CopyAndPaste(),
19 | );
20 | }
21 | }
22 |
23 | class CopyAndPaste extends StatelessWidget {
24 | const CopyAndPaste({Key? key}) : super(key: key);
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | final controller1 = TextEditingController();
29 | final controller2 = TextEditingController();
30 |
31 | return Scaffold(
32 | appBar: AppBar(title: const Text('Copy & Paste')),
33 | body: Padding(
34 | padding: const EdgeInsets.all(16.0),
35 | child: Column(
36 | children: [
37 | SelectableText(
38 | 'This is a string that you can Select and Copy',
39 | style: Theme.of(context)
40 | .textTheme
41 | .headlineMedium!
42 | .copyWith(color: Theme.of(context).colorScheme.primary),
43 | textAlign: TextAlign.center,
44 | ),
45 | const SizedBox(height: 32.0),
46 | InkWell(
47 | onTap: () {
48 | Clipboard.setData(
49 | const ClipboardData(
50 | text: 'This is a string that you can Tap and Copy',
51 | ),
52 | );
53 | },
54 | child: Text(
55 | 'This is a string that you can Tap and Copy',
56 | style: Theme.of(context)
57 | .textTheme
58 | .headlineMedium!
59 | .copyWith(color: Theme.of(context).colorScheme.secondary),
60 | textAlign: TextAlign.center,
61 | ),
62 | ),
63 | const SizedBox(height: 32.0),
64 | TextFormField(
65 | controller: controller1,
66 | decoration: const InputDecoration(
67 | hintText: 'Tap here to paste manually',
68 | ),
69 | ),
70 | const SizedBox(height: 32.0),
71 | TextFormField(
72 | controller: controller2,
73 | decoration: const InputDecoration(
74 | hintText: 'Tap here to paste automatically',
75 | ),
76 | onTap: () async {
77 | if (await Clipboard.hasStrings()) {
78 | final data = await Clipboard.getData('text/plain');
79 | final text = data?.text;
80 | if (text != null) {
81 | controller2.text = text;
82 | }
83 | }
84 | },
85 | )
86 | ],
87 | ),
88 | ),
89 | );
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/17_funnel_chart.dart:
--------------------------------------------------------------------------------
1 | // Funnel Chart with syncfusion_flutter_charts package
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | import 'package:flutter/material.dart';
5 | import 'package:syncfusion_flutter_charts/charts.dart';
6 |
7 | void main() {
8 | runApp(const MyApp());
9 | }
10 |
11 | class MyApp extends StatelessWidget {
12 | const MyApp({super.key});
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return MaterialApp(
17 | debugShowCheckedModeBanner: false,
18 | theme: ThemeData.light(useMaterial3: true),
19 | home: const FunnelExample(),
20 | );
21 | }
22 | }
23 |
24 | class FunnelExample extends StatelessWidget {
25 | const FunnelExample({super.key});
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | return Scaffold(
30 | appBar: AppBar(
31 | centerTitle: false,
32 | title: const Text('Analytics with Flutter'),
33 | actions: [
34 | IconButton(
35 | onPressed: () {},
36 | icon: const Icon(Icons.tune),
37 | ),
38 | IconButton(
39 | onPressed: () {},
40 | icon: const Icon(Icons.search),
41 | ),
42 | ],
43 | ),
44 | body: Padding(
45 | padding: const EdgeInsets.all(8.0),
46 | child: Column(
47 | children: [
48 | Card(
49 | child: Container(
50 | padding: const EdgeInsets.all(16.0),
51 | child: FunnelChart(),
52 | ),
53 | )
54 | ],
55 | ),
56 | ),
57 | );
58 | }
59 | }
60 |
61 | class FunnelChart extends StatefulWidget {
62 | const FunnelChart({super.key});
63 |
64 | @override
65 | State createState() => _FunnelChartState();
66 | }
67 |
68 | class _FunnelChartState extends State {
69 | var chartData = [
70 | ChartData(1, 'Sessions', 200),
71 | ChartData(2, 'Add to Cart', 40),
72 | ChartData(3, 'Checkout Start', 24),
73 | ChartData(4, 'Purchase Completed', 12),
74 | ];
75 |
76 | @override
77 | void initState() {
78 | chartData.sort((a, b) => a.index.compareTo(b.index));
79 | chartData = chartData.reversed.toList();
80 | super.initState();
81 | }
82 |
83 | @override
84 | Widget build(BuildContext context) {
85 | return SfFunnelChart(
86 | legend: Legend(
87 | isVisible: true,
88 | overflowMode: LegendItemOverflowMode.scroll,
89 | position: LegendPosition.bottom,
90 | textStyle: Theme.of(context).textTheme.bodySmall,
91 | ),
92 | palette: const [
93 | Color(0xFFFFF7BF),
94 | Color(0xFF5AAB84),
95 | Color(0xFF909CDF),
96 | Color(0xFF9C254D),
97 | ],
98 | series: FunnelSeries(
99 | dataSource: chartData,
100 | gapRatio: 0.1,
101 | dataLabelSettings: const DataLabelSettings(
102 | isVisible: true,
103 | labelPosition: ChartDataLabelPosition.outside,
104 | useSeriesColor: true,
105 | ),
106 | emptyPointSettings:
107 | const EmptyPointSettings(mode: EmptyPointMode.average),
108 | xValueMapper: (ChartData data, _) => data.x,
109 | yValueMapper: (ChartData data, _) => data.y,
110 | ),
111 | );
112 | }
113 | }
114 |
115 | class ChartData {
116 | ChartData(this.index, this.x, this.y, [this.color]);
117 | final int index;
118 | final String x;
119 | final double y;
120 | final Color? color;
121 | }
122 |
--------------------------------------------------------------------------------
/lib/06_carousel_slider.dart:
--------------------------------------------------------------------------------
1 | // Carousel Slider with dots indication in a Flutter app by maxonflutter
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | import 'package:carousel_slider/carousel_slider.dart';
5 | import 'package:dots_indicator/dots_indicator.dart';
6 | import 'package:flutter/material.dart';
7 |
8 | void main() {
9 | runApp(const MyApp());
10 | }
11 |
12 | class MyApp extends StatelessWidget {
13 | const MyApp({super.key});
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return MaterialApp(
18 | theme: ThemeData.light(useMaterial3: true),
19 | home: const CarouselSliderWithDots(),
20 | );
21 | }
22 | }
23 |
24 | class CarouselSliderWithDots extends StatefulWidget {
25 | const CarouselSliderWithDots({
26 | super.key,
27 | this.items = const [
28 | 'https://images.unsplash.com/photo-1688920556232-321bd176d0b4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80',
29 | 'https://images.unsplash.com/photo-1689085781839-2e1ff15cb9fe?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80',
30 | 'https://images.unsplash.com/photo-1688980034676-7e8ee518e75a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=735&q=80',
31 | ],
32 | });
33 |
34 | final List items;
35 |
36 | @override
37 | State createState() => _CarouselSliderWithDotsState();
38 | }
39 |
40 | class _CarouselSliderWithDotsState extends State {
41 | late CarouselController controller;
42 | int currentIndex = 0;
43 |
44 | @override
45 | void initState() {
46 | controller = CarouselController();
47 | super.initState();
48 | }
49 |
50 | @override
51 | Widget build(BuildContext context) {
52 | return Scaffold(
53 | appBar: AppBar(title: const Text('Carousel with Dots Indicator')),
54 | body: Stack(
55 | alignment: AlignmentDirectional.topCenter,
56 | children: [
57 | CarouselSlider(
58 | carouselController: controller,
59 | items: widget.items
60 | .map(
61 | (item) => Image.network(
62 | item,
63 | fit: BoxFit.cover,
64 | width: double.infinity,
65 | ),
66 | )
67 | .toList(),
68 | options: CarouselOptions(
69 | height: 400,
70 | autoPlay: true,
71 | onPageChanged: (index, reason) {
72 | setState(() {
73 | currentIndex = index;
74 | });
75 | },
76 | ),
77 | ),
78 | Positioned(
79 | bottom: 8.0,
80 | child: DotsIndicator(
81 | dotsCount: widget.items.length,
82 | position: currentIndex,
83 | onTap: (index) {
84 | controller.animateToPage(index);
85 | },
86 | decorator: DotsDecorator(
87 | color: Colors.white,
88 | activeColor: Colors.amber,
89 | size: const Size.square(12.0),
90 | activeSize: const Size(24.0, 12.0),
91 | activeShape: RoundedRectangleBorder(
92 | borderRadius: BorderRadius.circular(12.0),
93 | ),
94 | ),
95 | ),
96 | ),
97 | ],
98 | ),
99 | );
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/lib/15_digital_signature.dart:
--------------------------------------------------------------------------------
1 | // Digital signature
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | import 'dart:typed_data';
5 |
6 | import 'package:flutter/material.dart';
7 | import 'package:signature/signature.dart';
8 |
9 | void main() {
10 | runApp(const MyApp());
11 | }
12 |
13 | class MyApp extends StatelessWidget {
14 | const MyApp({super.key});
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return MaterialApp(
19 | debugShowCheckedModeBanner: false,
20 | theme: ThemeData.light(useMaterial3: true),
21 | home: const DigitaSignatureExample(),
22 | );
23 | }
24 | }
25 |
26 | class DigitaSignatureExample extends StatefulWidget {
27 | const DigitaSignatureExample({super.key});
28 |
29 | @override
30 | State createState() => _DigitaSignatureExampleState();
31 | }
32 |
33 | class _DigitaSignatureExampleState extends State {
34 | final SignatureController _controller = SignatureController(
35 | penStrokeWidth: 1,
36 | penColor: Colors.black,
37 | exportBackgroundColor: Colors.transparent,
38 | exportPenColor: Colors.black,
39 | onDrawStart: () => print('onDrawStart called!'),
40 | onDrawEnd: () => print('onDrawEnd called!'),
41 | );
42 |
43 | @override
44 | void dispose() {
45 | _controller.dispose();
46 | super.dispose();
47 | }
48 |
49 | @override
50 | Widget build(BuildContext context) {
51 | return Scaffold(
52 | appBar: AppBar(
53 | title: const Text('Signature Demo'),
54 | actions: [
55 | IconButton(
56 | onPressed: () {
57 | setState(() => _controller.undo());
58 | },
59 | icon: const Icon(Icons.undo),
60 | ),
61 | const SizedBox(width: 8.0),
62 | IconButton(
63 | onPressed: () {
64 | setState(() => _controller.redo());
65 | },
66 | icon: const Icon(Icons.redo),
67 | ),
68 | const SizedBox(width: 8.0),
69 | ],
70 | ),
71 | body: Column(
72 | children: [
73 | Signature(
74 | controller: _controller,
75 | height: 300,
76 | backgroundColor: Theme.of(context).colorScheme.primaryContainer,
77 | ),
78 | Padding(
79 | padding: const EdgeInsets.all(16.0),
80 | child: Column(
81 | children: [
82 | FilledButton.icon(
83 | style: FilledButton.styleFrom(
84 | minimumSize: const Size.fromHeight(48.0),
85 | ),
86 | onPressed: () async {
87 | final Uint8List? data = await _controller.toPngBytes(
88 | height: 1000,
89 | width: 1000,
90 | );
91 |
92 | print(data);
93 | },
94 | icon: const Icon(Icons.image),
95 | label: const Text('Export Image'),
96 | ),
97 | const SizedBox(height: 8.0),
98 | FilledButton.icon(
99 | style: FilledButton.styleFrom(
100 | minimumSize: const Size.fromHeight(48.0),
101 | ),
102 | onPressed: () {
103 | setState(() => _controller.clear());
104 | },
105 | icon: const Icon(Icons.clear),
106 | label: Text('Clear'),
107 | ),
108 | ],
109 | ),
110 | )
111 | ],
112 | ),
113 | );
114 | }
115 | }
116 |
--------------------------------------------------------------------------------
/lib/10_popover.dart:
--------------------------------------------------------------------------------
1 | // Popovers with the popover package by maxonflutter
2 | // YT: https://www.youtube.com/@MaxonFlutter/
3 | // Courses: https://www.atomsbox.com/
4 | import 'package:flutter/material.dart';
5 | import 'package:lottie/lottie.dart';
6 | import 'package:popover/popover.dart';
7 |
8 | void main() {
9 | runApp(const MyApp());
10 | }
11 |
12 | class MyApp extends StatelessWidget {
13 | const MyApp({super.key});
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return MaterialApp(
18 | debugShowCheckedModeBanner: false,
19 | theme: ThemeData.light(useMaterial3: true),
20 | home: const PopoverExample(),
21 | );
22 | }
23 | }
24 |
25 | class PopoverExample extends StatelessWidget {
26 | const PopoverExample({Key? key}) : super(key: key);
27 |
28 | @override
29 | Widget build(BuildContext context) {
30 | List<
31 | (
32 | String name,
33 | String path,
34 | )> popoverOptions = [
35 | ('Option 1', '/option-1'),
36 | ('Option 2', '/option-2'),
37 | ('Option 3', '/option-3')
38 | ];
39 |
40 | return Scaffold(
41 | appBar: AppBar(
42 | title: const Text('Popover Example'),
43 | centerTitle: true,
44 | actions: [
45 | Container(
46 | width: 40,
47 | height: 40,
48 | decoration: BoxDecoration(
49 | color: Theme.of(context).colorScheme.primaryContainer,
50 | shape: BoxShape.circle,
51 | ),
52 | // The Builder widget helps us to add another context above its
53 | // children. Without the Builder, the context might refer to a
54 | // widget above the Container in the widget tree, which could
55 | // potentially cause issues when trying to show the popover.
56 | child: Builder(
57 | builder: (context) {
58 | return GestureDetector(
59 | onTap: () => _showPopover(context, popoverOptions),
60 | child: const Icon(Icons.more_vert),
61 | );
62 | },
63 | ),
64 | ),
65 | const SizedBox(width: 16.0),
66 | ],
67 | ),
68 | body: Column(
69 | crossAxisAlignment: CrossAxisAlignment.center,
70 | mainAxisAlignment: MainAxisAlignment.center,
71 | children: [
72 | ColorFiltered(
73 | colorFilter: ColorFilter.mode(
74 | Theme.of(context).colorScheme.primary,
75 | BlendMode.color,
76 | ),
77 | child: Lottie.asset(
78 | 'assets/message_bubble.json',
79 | repeat: true,
80 | reverse: true,
81 | height: 300,
82 | width: double.infinity,
83 | ),
84 | ),
85 | ],
86 | ),
87 | );
88 | }
89 |
90 | Future