├── example
├── ios
│ ├── Flutter
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ └── AppFrameworkInfo.plist
│ ├── 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
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── Runner.xcodeproj
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ ├── xcshareddata
│ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ └── project.pbxproj
│ └── .gitignore
├── images
│ └── completed.png
├── 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
│ │ │ │ │ └── values
│ │ │ │ │ │ └── styles.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── com
│ │ │ │ │ │ └── snstudio
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── AndroidManifest.xml
│ │ │ ├── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ └── build.gradle
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ ├── .gitignore
│ ├── settings.gradle
│ └── build.gradle
├── .metadata
├── test
│ └── widget_test.dart
├── .gitignore
├── pubspec.yaml
├── pubspec.lock
├── lib
│ └── main.dart
└── README.md
├── images
├── cancel.png
└── completed.png
├── test
└── sn_progress_dialog_test.dart
├── lib
├── enums
│ ├── value_position.dart
│ ├── dialog_status.dart
│ └── progress_types.dart
├── sn_progress_dialog.dart
├── options
│ ├── completed.dart
│ └── cancel.dart
└── progress_dialog.dart
├── .metadata
├── .github
└── workflows
│ └── dart.yml
├── LICENSE
├── pubspec.yaml
├── .gitignore
├── CHANGELOG.md
├── README.md
└── pubspec.lock
/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/images/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/images/cancel.png
--------------------------------------------------------------------------------
/images/completed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/images/completed.png
--------------------------------------------------------------------------------
/example/images/completed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/images/completed.png
--------------------------------------------------------------------------------
/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 | android.enableR8=true
5 |
--------------------------------------------------------------------------------
/test/sn_progress_dialog_test.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_test/flutter_test.dart';
2 |
3 | void main() {
4 | test('sn_progress_dialog', () {});
5 | }
6 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/example/android/app/src/main/kotlin/com/snstudio/example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.snstudio.example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emreesen27/Flutter-Progress-Dialog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/lib/enums/value_position.dart:
--------------------------------------------------------------------------------
1 | /// Determines the position of the progress value text.
2 | enum ValuePosition {
3 | /// Center aligned progress value
4 | center,
5 |
6 | /// Right aligned progress value
7 | right
8 | }
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/enums/dialog_status.dart:
--------------------------------------------------------------------------------
1 | /// Represents the current status of the dialog.
2 | enum DialogStatus {
3 | /// Dialog is currently displayed
4 | opened,
5 |
6 | /// Dialog has been closed
7 | closed,
8 |
9 | /// Dialog has completed its progress
10 | completed
11 | }
12 |
--------------------------------------------------------------------------------
/example/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-7.5-all.zip
7 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/sn_progress_dialog.dart:
--------------------------------------------------------------------------------
1 | library sn_progress_dialog;
2 |
3 | /// Exporting package files
4 | export 'progress_dialog.dart';
5 | export 'options/completed.dart';
6 | export 'options/cancel.dart';
7 | export 'enums/progress_types.dart';
8 | export 'enums/dialog_status.dart';
9 | export 'enums/value_position.dart';
10 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.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: 78910062997c3a836feee883712c241a5fd22983
8 | channel: stable
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/example/.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: 78910062997c3a836feee883712c241a5fd22983
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/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.
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter_test/flutter_test.dart';
9 |
10 | void main() {
11 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {});
12 | }
13 |
--------------------------------------------------------------------------------
/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.5.20'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.4.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 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/example/.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 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
--------------------------------------------------------------------------------
/lib/enums/progress_types.dart:
--------------------------------------------------------------------------------
1 | enum ProgressType {
2 | /// Indeterminate progress indicator
3 | @Deprecated(
4 | 'Use indeterminate instead. This will be removed in the next major version.')
5 | normal,
6 |
7 | /// Progress indicator with value
8 | @Deprecated(
9 | 'Use determinate instead. This will be removed in the next major version.')
10 | valuable,
11 |
12 | /// Shows an infinite spinning progress indicator without specific progress value
13 | indeterminate,
14 |
15 | /// Shows progress with specific value (0-100%)
16 | determinate,
17 | }
18 |
19 | extension ProgressTypeHelper on ProgressType {
20 | bool get isIndeterminate =>
21 | this == ProgressType.normal || this == ProgressType.indeterminate;
22 |
23 | bool get isDeterminate =>
24 | this == ProgressType.valuable || this == ProgressType.determinate;
25 | }
26 |
--------------------------------------------------------------------------------
/lib/options/completed.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Completed {
4 | /// Future that resolves to the completion message.
5 | /// If provided, this message will override [completedMsg] when resolved.
6 | final Future? completedMsgFuture;
7 |
8 | /// Message to display when progress completes.
9 | /// Defaults to "Completed !".
10 | final String completedMsg;
11 |
12 | /// Duration to wait before closing the dialog after completion, in milliseconds.
13 | /// Defaults to 1500ms.
14 | final int completionDelay;
15 |
16 | /// Custom image to display when progress completes.
17 | /// If not provided, uses default completion icon.
18 | final AssetImage? completedImage;
19 |
20 | Completed({
21 | this.completedMsgFuture,
22 | this.completedMsg = "Completed !",
23 | this.completionDelay = 1500,
24 | this.completedImage,
25 | });
26 | }
27 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/lib/options/cancel.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Cancel {
4 | /// Callback function that will be executed when cancel button is tapped.
5 | final GestureTapCallback? cancelClicked;
6 |
7 | /// Custom image to use for the cancel button.
8 | /// If not provided, uses default cancel icon.
9 | final AssetImage? cancelImage;
10 |
11 | /// Size of the cancel button image in pixels.
12 | /// Defaults to 15.0.
13 | final double cancelImageSize;
14 |
15 | /// Color to apply to the cancel button image.
16 | /// Defaults to Colors.black.
17 | final Color? cancelImageColor;
18 |
19 | /// Whether to automatically hide the cancel button when progress completes.
20 | /// When true, the button will be hidden when progress value equals max value.
21 | /// Defaults to true.
22 | final bool autoHidden;
23 |
24 | Cancel({
25 | this.cancelClicked,
26 | this.cancelImage,
27 | this.cancelImageSize = 15.0,
28 | this.cancelImageColor = Colors.black,
29 | this.autoHidden = true,
30 | });
31 | }
32 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/.github/workflows/dart.yml:
--------------------------------------------------------------------------------
1 | name: pub score
2 | on:
3 | pull_request:
4 | branches:
5 | - develop
6 | - master
7 |
8 | jobs:
9 | package-analysis:
10 | runs-on: ubuntu-latest
11 | steps:
12 | - uses: actions/checkout@v2
13 | - uses: axel-op/dart-package-analyzer@v3
14 | # set an id for the current step
15 | id: analysis
16 | with:
17 | githubToken: ${{ secrets.GITHUB_TOKEN }}
18 |
19 | # You can then use this id to retrieve the outputs in the next steps.
20 | # The following step shows how to exit the workflow with an error if the total score in percentage is below 50:
21 | - name: check scores
22 | env:
23 | # NB: "analysis" is the id set above. Replace it with the one you used if different.
24 | TOTAL: ${{ steps.analysis.outputs.total }}
25 | TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
26 | run: |
27 | PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
28 | if (( $PERCENTAGE < 100 ))
29 | then
30 | echo Score too low!
31 | exit 1
32 | fi
33 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Aydın Emre Esen
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 | example
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 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: sn_progress_dialog
2 | description: Customizable progress dialog package for Flutter.(Captures the progress value)
3 | version: 1.2.0
4 | homepage: https://github.com/emreesen27/Flutter-Progress-Dialog.git
5 |
6 | environment:
7 | sdk: '>=2.12.0 <4.0.0'
8 | flutter: ">=1.17.0"
9 |
10 | dependencies:
11 | flutter:
12 | sdk: flutter
13 |
14 | dev_dependencies:
15 | flutter_test:
16 | sdk: flutter
17 |
18 | # For information on the generic Dart part of this file, see the
19 | # following page: https://dart.dev/tools/pub/pubspec
20 |
21 | # The following section is specific to Flutter.
22 | flutter:
23 |
24 | # To add assets to your package, add an assets section, like this:
25 | assets:
26 | - images/completed.png
27 | - images/cancel.png
28 | #
29 | # For details regarding assets in packages, see
30 | # https://flutter.dev/assets-and-images/#from-packages
31 | #
32 | # An image asset can refer to one or more resolution-specific "variants", see
33 | # https://flutter.dev/assets-and-images/#resolution-aware.
34 |
35 | # To add custom fonts to your package, add a fonts section here,
36 | # in this "flutter" section. Each entry in this list should have a
37 | # "family" key with the font family name, and a "fonts" key with a
38 | # list giving the asset and other descriptors for the font. For
39 | # example:
40 | # fonts:
41 | # - family: Schyler
42 | # fonts:
43 | # - asset: fonts/Schyler-Regular.ttf
44 | # - asset: fonts/Schyler-Italic.ttf
45 | # style: italic
46 | # - family: Trajan Pro
47 | # fonts:
48 | # - asset: fonts/TrajanPro.ttf
49 | # - asset: fonts/TrajanPro_Bold.ttf
50 | # weight: 700
51 | #
52 | # For details regarding fonts in packages, see
53 | # https://flutter.dev/custom-fonts/#from-packages
54 |
--------------------------------------------------------------------------------
/.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/Flutter.podspec
62 | **/ios/Flutter/Generated.xcconfig
63 | **/ios/Flutter/app.flx
64 | **/ios/Flutter/app.zip
65 | **/ios/Flutter/flutter_assets/
66 | **/ios/Flutter/flutter_export_environment.sh
67 | **/ios/ServiceDefinitions.json
68 | **/ios/Runner/GeneratedPluginRegistrant.*
69 |
70 | # Exceptions to above rules.
71 | !**/ios/**/default.mode1v3
72 | !**/ios/**/default.mode2v3
73 | !**/ios/**/default.pbxuser
74 | !**/ios/**/default.perspectivev3
75 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## [1.2.0]- 10.12.2024
2 | * `completedMsgFuture` support for asynchronous completion messages
3 | * `dispose()` method to properly release resources
4 | * Deprecated old ProgressType values: normal and valuable
5 |
6 |
7 | ## [1.1.4] - 09.03.2024
8 |
9 | * Added support for `useRootNavigator` parameter in the `ProgressDialog` constructor.
10 | * `WillPopScope` usage has been deprecated in favor of `PopScope`
11 | * `SurfaceTintColor` now customizable
12 |
13 | ## [1.1.3] - 08.02.2023
14 |
15 | * Issues 22 and 28 fix.
16 | * Readme edited.
17 | * Removed required fields in update method
18 |
19 | ## [1.1.2] - 22.01.2023
20 |
21 | * Auto hidden added.
22 | * Readme edited.
23 |
24 | ## [1.1.1] - 21.01.2023
25 |
26 | * Readme edited.
27 |
28 | ## [1.1.0] - 21.01.2023
29 |
30 | * Bug Fix.
31 | * Cancel option added.
32 | * Dialog status callback added.
33 |
34 | ## [1.0.9] - 09.12.2022
35 |
36 | * Assets path edited.
37 | * The close function can be used with delay.
38 | * closeWithDelay property added.
39 |
40 | ## [1.0.8] - 20.05.2022
41 |
42 | * Bug Fix.
43 |
44 | ## [1.0.7] - 01.05.2022
45 |
46 | * Bug Fix.
47 |
48 | ## [1.0.6] - 28.03.2022
49 |
50 | * Readme edited.
51 | * Completed type added.
52 |
53 | ## [1.0.3] - 15.08.2021
54 |
55 | * Bug fix
56 |
57 | ## [1.0.2] - 04.05.2021
58 |
59 | * The back button was prevented from closing the dialog.
60 | * Border radius added.
61 |
62 | ## [1.0.1] - 01.04.2021
63 |
64 | * Example edited.
65 | * Readme edited.
66 |
67 | ## [1.0.0] - 31.03.2021
68 |
69 | * Null Safety migrated.
70 | * Bug fix.
71 |
72 | ## [0.0.5] - 14.02.2021
73 |
74 | * New properties added.
75 |
76 | ## [0.0.4] - 29.01.2021
77 |
78 | * Progress Type added.
79 | * Documentation and example codes edited.
80 |
81 | ## [0.0.3] - 21.01.2021
82 |
83 | * Msg added to update method.
84 |
85 | ## [0.0.2] - 16.01.2021
86 |
87 | * Readme and description edited.
88 |
89 | ## [0.0.1] - 16.01.2021
90 |
91 | * Initial build for flutter sn_progress_dialog package.
92 |
--------------------------------------------------------------------------------
/example/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 31
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.snstudio.example"
42 | minSdkVersion flutter.minSdkVersion
43 | targetSdkVersion 31
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
20 |
24 |
28 |
33 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: example
2 | description: sn_progress_dialog example.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <4.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 | sn_progress_dialog:
27 | path: ../
28 |
29 |
30 |
31 | # The following adds the Cupertino Icons font to your application.
32 | # Use with the CupertinoIcons class for iOS style icons.
33 | cupertino_icons: ^1.0.0
34 |
35 | dev_dependencies:
36 | flutter_test:
37 | sdk: flutter
38 |
39 | # For information on the generic Dart part of this file, see the
40 | # following page: https://dart.dev/tools/pub/pubspec
41 |
42 | # The following section is specific to Flutter.
43 | flutter:
44 |
45 | # The following line ensures that the Material Icons font is
46 | # included with your application, so that you can use the icons in
47 | # the material Icons class.
48 | uses-material-design: true
49 |
50 | # To add assets to your application, add an assets section, like this:
51 | assets:
52 | - images/completed.png
53 |
54 | # An image asset can refer to one or more resolution-specific "variants", see
55 | # https://flutter.dev/assets-and-images/#resolution-aware.
56 |
57 | # For details regarding adding assets from package dependencies, see
58 | # https://flutter.dev/assets-and-images/#from-packages
59 |
60 | # To add custom fonts to your application, add a fonts section here,
61 | # in this "flutter" section. Each entry in this list should have a
62 | # "family" key with the font family name, and a "fonts" key with a
63 | # list giving the asset and other descriptors for the font. For
64 | # example:
65 | # fonts:
66 | # - family: Schyler
67 | # fonts:
68 | # - asset: fonts/Schyler-Regular.ttf
69 | # - asset: fonts/Schyler-Italic.ttf
70 | # style: italic
71 | # - family: Trajan Pro
72 | # fonts:
73 | # - asset: fonts/TrajanPro.ttf
74 | # - asset: fonts/TrajanPro_Bold.ttf
75 | # weight: 700
76 | #
77 | # For details regarding fonts from package dependencies,
78 | # see https://flutter.dev/custom-fonts/#from-packages
79 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Sn Progress Dialog
2 |
3 | Progress dialog package for flutter
4 |
5 | ## Getting Started
6 |
7 | You must add the library as a dependency to your project.
8 | ```yaml
9 | dependencies:
10 | sn_progress_dialog: ^1.2.0
11 | ```
12 |
13 | You should then run `flutter packages get`
14 |
15 | Now in your Dart code, you can use:
16 |
17 | ```dart
18 | import 'package:sn_progress_dialog/sn_progress_dialog.dart';
19 | ```
20 |
21 | Normal Progress | Valuable Progress
22 | :-------------------------:|:-------------------------:
23 |  | 
24 |
25 | Preparing Progress | Custom Progress
26 | :-------------------------:|:-------------------------:
27 |  | 
28 |
29 | ## Usage Example
30 |
31 | * [You can review the sample codes for detailed usage.](https://github.com/emreesen27/Flutter-Progress-Dialog/tree/master/example)
32 |
33 |
34 | Create Progress Dialog
35 |
36 | ```dart
37 | ProgressDialog pd = ProgressDialog(context: context);
38 | ```
39 | Set options
40 | * Both parameters are not mandatory with version 1.1.3 (max, msg)
41 | * Default values can be changed according to the intended use.
42 |
43 | ```dart
44 | pd.show(max: 100, msg: 'File Downloading...');
45 | ```
46 |
47 | You don't need to update state, just pass the value.
48 | - If you're not interested in showing value, you don't need to update progressValue.
49 |
50 | ```dart
51 | pd.update(value: ProgressValue, msg: "Updated message");
52 | ```
53 |
54 | ### Completed Type
55 | * Use this to update the dialog when the process is finished. If it is Empty, progress automatically closes.
56 |
57 |
58 |
59 |
60 | ```dart
61 | completed: Completed() // To use with default values
62 | completed: Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("image path"), completionDelay: 2500)
63 | ```
64 |
65 | ### Cancel Option
66 | * Use the "cancel" class to create a cancel button
67 |
68 | ```dart
69 | cancel: Cancel() // To use with default values
70 | cancel: Cancel(cancelImageSize: 20.0, cancelImageColor: Colors.blue, cancelImage: AssetImage("image path"), cancelClicked: () {})
71 | ```
72 |
73 | ### Dialog Status
74 | * Returns the current state of the dialog.
75 |
76 | ```dart
77 | onStatusChanged: (status) {
78 | if (status == DialogStatus.opened)
79 | print("opened");
80 | else if (status == DialogStatus.closed)
81 | print("closed");
82 | else if (status == DialogStatus.completed)
83 | print("completed");
84 | }
85 | ```
86 |
87 | ### Other Properties
88 |
89 | Dialog closes automatically when its progress status equals the max value.
90 | Use this method if you want to turn it close manually.
91 |
92 | ```dart
93 | pd.close();
94 | ```
95 | Returns whether the dialog box is open.
96 |
97 | ```dart
98 | pd.isOpen();
99 | ```
100 |
101 | ### Example Use With Dio
102 |
103 | ```dart
104 | var dio = new Dio();
105 | ProgressDialog pd = ProgressDialog(context: context);
106 | pd.show(max: 100, msg: 'File Downloading...');
107 | await dio.download(
108 | 'your download_url',
109 | 'your path',
110 | onReceiveProgress: (rec, total) {
111 | int progress = (((rec / total) * 100).toInt());
112 | pd.update(value: progress);
113 | },
114 | );
115 | ```
116 | #### If you like the library, you can support the [github](https://github.com/emreesen27/Flutter-Progress-Dialog) repo by giving a star.
117 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "2.11.0"
12 | boolean_selector:
13 | dependency: transitive
14 | description:
15 | name: boolean_selector
16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "2.1.1"
20 | characters:
21 | dependency: transitive
22 | description:
23 | name: characters
24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "1.3.0"
28 | clock:
29 | dependency: transitive
30 | description:
31 | name: clock
32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "1.1.1"
36 | collection:
37 | dependency: transitive
38 | description:
39 | name: collection
40 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "1.18.0"
44 | fake_async:
45 | dependency: transitive
46 | description:
47 | name: fake_async
48 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.3.1"
52 | flutter:
53 | dependency: "direct main"
54 | description: flutter
55 | source: sdk
56 | version: "0.0.0"
57 | flutter_test:
58 | dependency: "direct dev"
59 | description: flutter
60 | source: sdk
61 | version: "0.0.0"
62 | matcher:
63 | dependency: transitive
64 | description:
65 | name: matcher
66 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
67 | url: "https://pub.dev"
68 | source: hosted
69 | version: "0.12.16"
70 | material_color_utilities:
71 | dependency: transitive
72 | description:
73 | name: material_color_utilities
74 | sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
75 | url: "https://pub.dev"
76 | source: hosted
77 | version: "0.5.0"
78 | meta:
79 | dependency: transitive
80 | description:
81 | name: meta
82 | sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
83 | url: "https://pub.dev"
84 | source: hosted
85 | version: "1.10.0"
86 | path:
87 | dependency: transitive
88 | description:
89 | name: path
90 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
91 | url: "https://pub.dev"
92 | source: hosted
93 | version: "1.8.3"
94 | sky_engine:
95 | dependency: transitive
96 | description: flutter
97 | source: sdk
98 | version: "0.0.99"
99 | source_span:
100 | dependency: transitive
101 | description:
102 | name: source_span
103 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
104 | url: "https://pub.dev"
105 | source: hosted
106 | version: "1.10.0"
107 | stack_trace:
108 | dependency: transitive
109 | description:
110 | name: stack_trace
111 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
112 | url: "https://pub.dev"
113 | source: hosted
114 | version: "1.11.1"
115 | stream_channel:
116 | dependency: transitive
117 | description:
118 | name: stream_channel
119 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
120 | url: "https://pub.dev"
121 | source: hosted
122 | version: "2.1.2"
123 | string_scanner:
124 | dependency: transitive
125 | description:
126 | name: string_scanner
127 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
128 | url: "https://pub.dev"
129 | source: hosted
130 | version: "1.2.0"
131 | term_glyph:
132 | dependency: transitive
133 | description:
134 | name: term_glyph
135 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
136 | url: "https://pub.dev"
137 | source: hosted
138 | version: "1.2.1"
139 | test_api:
140 | dependency: transitive
141 | description:
142 | name: test_api
143 | sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
144 | url: "https://pub.dev"
145 | source: hosted
146 | version: "0.6.1"
147 | vector_math:
148 | dependency: transitive
149 | description:
150 | name: vector_math
151 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
152 | url: "https://pub.dev"
153 | source: hosted
154 | version: "2.1.4"
155 | web:
156 | dependency: transitive
157 | description:
158 | name: web
159 | sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
160 | url: "https://pub.dev"
161 | source: hosted
162 | version: "0.3.0"
163 | sdks:
164 | dart: ">=3.2.0-194.0.dev <4.0.0"
165 | flutter: ">=1.17.0"
166 |
--------------------------------------------------------------------------------
/example/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "2.11.0"
12 | boolean_selector:
13 | dependency: transitive
14 | description:
15 | name: boolean_selector
16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "2.1.1"
20 | characters:
21 | dependency: transitive
22 | description:
23 | name: characters
24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "1.3.0"
28 | clock:
29 | dependency: transitive
30 | description:
31 | name: clock
32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "1.1.1"
36 | collection:
37 | dependency: transitive
38 | description:
39 | name: collection
40 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "1.18.0"
44 | cupertino_icons:
45 | dependency: "direct main"
46 | description:
47 | name: cupertino_icons
48 | sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.0.6"
52 | fake_async:
53 | dependency: transitive
54 | description:
55 | name: fake_async
56 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "1.3.1"
60 | flutter:
61 | dependency: "direct main"
62 | description: flutter
63 | source: sdk
64 | version: "0.0.0"
65 | flutter_test:
66 | dependency: "direct dev"
67 | description: flutter
68 | source: sdk
69 | version: "0.0.0"
70 | matcher:
71 | dependency: transitive
72 | description:
73 | name: matcher
74 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
75 | url: "https://pub.dev"
76 | source: hosted
77 | version: "0.12.16"
78 | material_color_utilities:
79 | dependency: transitive
80 | description:
81 | name: material_color_utilities
82 | sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
83 | url: "https://pub.dev"
84 | source: hosted
85 | version: "0.5.0"
86 | meta:
87 | dependency: transitive
88 | description:
89 | name: meta
90 | sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
91 | url: "https://pub.dev"
92 | source: hosted
93 | version: "1.10.0"
94 | path:
95 | dependency: transitive
96 | description:
97 | name: path
98 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
99 | url: "https://pub.dev"
100 | source: hosted
101 | version: "1.8.3"
102 | sky_engine:
103 | dependency: transitive
104 | description: flutter
105 | source: sdk
106 | version: "0.0.99"
107 | sn_progress_dialog:
108 | dependency: "direct main"
109 | description:
110 | path: ".."
111 | relative: true
112 | source: path
113 | version: "1.2.0"
114 | source_span:
115 | dependency: transitive
116 | description:
117 | name: source_span
118 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
119 | url: "https://pub.dev"
120 | source: hosted
121 | version: "1.10.0"
122 | stack_trace:
123 | dependency: transitive
124 | description:
125 | name: stack_trace
126 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
127 | url: "https://pub.dev"
128 | source: hosted
129 | version: "1.11.1"
130 | stream_channel:
131 | dependency: transitive
132 | description:
133 | name: stream_channel
134 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
135 | url: "https://pub.dev"
136 | source: hosted
137 | version: "2.1.2"
138 | string_scanner:
139 | dependency: transitive
140 | description:
141 | name: string_scanner
142 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
143 | url: "https://pub.dev"
144 | source: hosted
145 | version: "1.2.0"
146 | term_glyph:
147 | dependency: transitive
148 | description:
149 | name: term_glyph
150 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
151 | url: "https://pub.dev"
152 | source: hosted
153 | version: "1.2.1"
154 | test_api:
155 | dependency: transitive
156 | description:
157 | name: test_api
158 | sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
159 | url: "https://pub.dev"
160 | source: hosted
161 | version: "0.6.1"
162 | vector_math:
163 | dependency: transitive
164 | description:
165 | name: vector_math
166 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
167 | url: "https://pub.dev"
168 | source: hosted
169 | version: "2.1.4"
170 | web:
171 | dependency: transitive
172 | description:
173 | name: web
174 | sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
175 | url: "https://pub.dev"
176 | source: hosted
177 | version: "0.3.0"
178 | sdks:
179 | dart: ">=3.2.0-194.0.dev <4.0.0"
180 | flutter: ">=1.17.0"
181 |
--------------------------------------------------------------------------------
/example/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:sn_progress_dialog/sn_progress_dialog.dart';
3 |
4 | void main() {
5 | runApp(MyExample());
6 | }
7 |
8 | class MyExample extends StatelessWidget {
9 | @override
10 | Widget build(BuildContext context) {
11 | return MaterialApp(
12 | home: Home(),
13 | );
14 | }
15 | }
16 |
17 | class Home extends StatelessWidget {
18 | _normalProgress(context) async {
19 | /// Create progress dialog
20 | ProgressDialog pd = ProgressDialog(context: context);
21 |
22 | /// Set options
23 | /// Max and msg required
24 | pd.show(
25 | max: 100,
26 | msg: 'File Downloading...',
27 | progressBgColor: Colors.transparent,
28 | cancel: Cancel(
29 | cancelClicked: () {
30 | /// ex: cancel the download
31 | },
32 | ),
33 | );
34 | for (int i = 0; i <= 100; i++) {
35 | /// You don't need to update state, just pass the value.
36 | pd.update(value: i);
37 | i++;
38 | await Future.delayed(Duration(milliseconds: 100));
39 | }
40 | }
41 |
42 | /// Shows a progress dialog with a determinate progress bar.
43 | _valuableProgress(context) async {
44 | ProgressDialog pd = ProgressDialog(context: context);
45 |
46 | pd.show(
47 | max: 100,
48 | msg: 'File Downloading...',
49 | progressType: ProgressType.valuable,
50 | );
51 | for (int i = 0; i <= 100; i++) {
52 | pd.update(value: i);
53 | i++;
54 | await Future.delayed(Duration(milliseconds: 100));
55 | }
56 | }
57 |
58 | /// Shows a progress dialog that starts with a preparation message,
59 | /// then switches to a downloading message.
60 | _preparingProgress(context) async {
61 | ProgressDialog pd = ProgressDialog(context: context);
62 |
63 | pd.show(
64 | max: 100,
65 | msg: 'Preparing Download...',
66 | progressType: ProgressType.determinate,
67 | );
68 |
69 | await Future.delayed(Duration(milliseconds: 3000));
70 | for (int i = 0; i <= 100; i++) {
71 | pd.update(value: i, msg: 'File Downloading...');
72 | i++;
73 | await Future.delayed(Duration(milliseconds: 100));
74 | }
75 | }
76 |
77 | /// Shows a customizable progress dialog with a dark theme.
78 | _customProgress(context) async {
79 | ProgressDialog pd = ProgressDialog(context: context);
80 | pd.show(
81 | max: 100,
82 | msg: 'Preparing Download...',
83 | progressType: ProgressType.determinate,
84 | backgroundColor: Color(0xff212121),
85 | progressValueColor: Color(0xff3550B4),
86 | progressBgColor: Colors.white70,
87 | msgColor: Colors.white,
88 | valueColor: Colors.white);
89 | await Future.delayed(Duration(milliseconds: 3000));
90 | for (int i = 0; i <= 100; i++) {
91 | pd.update(value: i, msg: 'File Downloading...');
92 | i++;
93 | await Future.delayed(Duration(milliseconds: 100));
94 | }
95 | }
96 |
97 | /// Shows a progress dialog that completes with a custom completion widget.
98 | _completedProgress(context) async {
99 | ProgressDialog pd = ProgressDialog(context: context);
100 | pd.show(
101 | max: 100,
102 | msg: 'File Downloading...',
103 | completed: Completed(),
104 | // Completed values can be customized
105 | // Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("images/completed.png"), completionDelay: 2500,),
106 | progressBgColor: Colors.transparent,
107 | );
108 | for (int i = 0; i <= 100; i++) {
109 | pd.update(value: i);
110 | i++;
111 | await Future.delayed(Duration(milliseconds: 100));
112 | }
113 | }
114 |
115 | /// Shows a message-only progress dialog without a progress bar.
116 | _onlyMessageProgress(context) async {
117 | ProgressDialog pd = ProgressDialog(context: context);
118 | pd.show(
119 | barrierDismissible: true,
120 | msg: "Please waiting...",
121 | hideValue: true,
122 | );
123 |
124 | await Future.delayed(Duration(milliseconds: 1000));
125 | pd.update(msg: "Almost done...");
126 |
127 | await Future.delayed(Duration(milliseconds: 1000));
128 | pd.close();
129 | }
130 |
131 | /// Shows a message-only progress dialog that completes automatically.
132 | _onlyMessageWithCompletionProgress(context) async {
133 | ProgressDialog pd = ProgressDialog(context: context);
134 | pd.show(
135 | barrierDismissible: true,
136 | msg: "Please waiting...",
137 | hideValue: true,
138 | completed: Completed(completionDelay: 1500), // Set Completed
139 | );
140 | await Future.delayed(Duration(milliseconds: 1000));
141 |
142 | pd.update(msg: "Almost done...");
143 |
144 | await Future.delayed(Duration(milliseconds: 1000));
145 | /**
146 | * if you can't assign value and want to use completed object. You should set the Value to 100.
147 | * The dialog will close automatically.
148 | * **/
149 | pd.update(value: 100);
150 | }
151 |
152 | @override
153 | Widget build(BuildContext context) {
154 | return Scaffold(
155 | body: Container(
156 | child: Center(
157 | child: Column(
158 | mainAxisAlignment: MainAxisAlignment.center,
159 | children: [
160 | Padding(
161 | padding: const EdgeInsets.all(20.0),
162 | child: Text(
163 | 'Sn Progress Example',
164 | style: TextStyle(
165 | fontSize: 30.0,
166 | fontWeight: FontWeight.bold,
167 | ),
168 | ),
169 | ),
170 | MaterialButton(
171 | color: Color(0xfff7f7f7),
172 | child: Text('Normal Progress'),
173 | onPressed: () {
174 | _normalProgress(context);
175 | }),
176 | MaterialButton(
177 | color: Color(0xfff7f7f7),
178 | child: Text('Valuable Progress'),
179 | onPressed: () {
180 | _valuableProgress(context);
181 | }),
182 | MaterialButton(
183 | color: Color(0xfff7f7f7),
184 | child: Text('Preparing Progress'),
185 | onPressed: () {
186 | _preparingProgress(context);
187 | }),
188 | MaterialButton(
189 | color: Color(0xfff7f7f7),
190 | child: Text('Custom Progress'),
191 | onPressed: () {
192 | _customProgress(context);
193 | }),
194 | MaterialButton(
195 | color: Color(0xfff7f7f7),
196 | child: Text('Completed Progress'),
197 | onPressed: () {
198 | _completedProgress(context);
199 | }),
200 | MaterialButton(
201 | color: Color(0xfff7f7f7),
202 | child: Text('Message Progress'),
203 | onPressed: () {
204 | _onlyMessageProgress(context);
205 | }),
206 | MaterialButton(
207 | color: Color(0xfff7f7f7),
208 | child: Text('Message Progress With Completed'),
209 | onPressed: () {
210 | _onlyMessageWithCompletionProgress(context);
211 | }),
212 | ],
213 | ),
214 | ),
215 | ),
216 | );
217 | }
218 | }
219 |
--------------------------------------------------------------------------------
/example/README.md:
--------------------------------------------------------------------------------
1 | # Sn Progress Dialog Example
2 |
3 | ```dart
4 | import 'package:flutter/material.dart';
5 | import 'package:sn_progress_dialog/sn_progress_dialog.dart';
6 |
7 | void main() {
8 | runApp(MyExample());
9 | }
10 |
11 | class MyExample extends StatelessWidget {
12 | @override
13 | Widget build(BuildContext context) {
14 | return MaterialApp(
15 | home: Home(),
16 | );
17 | }
18 | }
19 |
20 | class Home extends StatelessWidget {
21 | _normalProgress(context) async {
22 | /// Create progress dialog
23 | ProgressDialog pd = ProgressDialog(context: context);
24 |
25 | /// Set options
26 | /// Max and msg required
27 | pd.show(
28 | max: 100,
29 | msg: 'File Downloading...',
30 | progressBgColor: Colors.transparent,
31 | cancel: Cancel(
32 | cancelClicked: () {
33 | /// ex: cancel the download
34 | },
35 | ),
36 | );
37 | for (int i = 0; i <= 100; i++) {
38 | /// You don't need to update state, just pass the value.
39 | /// Only value required
40 | pd.update(value: i);
41 | i++;
42 | await Future.delayed(Duration(milliseconds: 100));
43 | }
44 | }
45 |
46 | _valuableProgress(context) async {
47 | ProgressDialog pd = ProgressDialog(context: context);
48 |
49 | pd.show(
50 | max: 100,
51 | msg: 'File Downloading...',
52 |
53 | /// Assign the type of progress bar.
54 | progressType: ProgressType.valuable,
55 | );
56 | for (int i = 0; i <= 100; i++) {
57 | pd.update(value: i);
58 | i++;
59 | await Future.delayed(Duration(milliseconds: 100));
60 | }
61 | }
62 |
63 | _preparingProgress(context) async {
64 | ProgressDialog pd = ProgressDialog(context: context);
65 |
66 | /// show the state of preparation first.
67 | pd.show(
68 | max: 100,
69 | msg: 'Preparing Download...',
70 | progressType: ProgressType.valuable,
71 | );
72 |
73 | /// Added to test late loading starts
74 | await Future.delayed(Duration(milliseconds: 3000));
75 | for (int i = 0; i <= 100; i++) {
76 | /// You can indicate here that the download has started.
77 | pd.update(value: i, msg: 'File Downloading...');
78 | i++;
79 | await Future.delayed(Duration(milliseconds: 100));
80 | }
81 | }
82 |
83 | _customProgress(context) async {
84 | ProgressDialog pd = ProgressDialog(context: context);
85 |
86 | /// show the state of preparation first.
87 | pd.show(
88 | max: 100,
89 | msg: 'Preparing Download...',
90 | progressType: ProgressType.valuable,
91 | backgroundColor: Color(0xff212121),
92 | progressValueColor: Color(0xff3550B4),
93 | progressBgColor: Colors.white70,
94 | msgColor: Colors.white,
95 | valueColor: Colors.white);
96 |
97 | /// Added to test late loading starts
98 | await Future.delayed(Duration(milliseconds: 3000));
99 | for (int i = 0; i <= 100; i++) {
100 | /// You can indicate here that the download has started.
101 | pd.update(value: i, msg: 'File Downloading...');
102 | i++;
103 | await Future.delayed(Duration(milliseconds: 100));
104 | }
105 | }
106 |
107 | _completedProgress(context) async {
108 | ProgressDialog pd = ProgressDialog(context: context);
109 | pd.show(
110 | max: 100,
111 | msg: 'File Downloading...',
112 | completed: Completed(),
113 | // Completed values can be customized
114 | // Completed(completedMsg: "Downloading Done !", completedImage: AssetImage("images/completed.png"), completionDelay: 2500,),
115 | progressBgColor: Colors.transparent,
116 | );
117 | for (int i = 0; i <= 100; i++) {
118 | pd.update(value: i);
119 | i++;
120 | await Future.delayed(Duration(milliseconds: 100));
121 | }
122 | }
123 |
124 | _onlyMessageProgress(context) async {
125 | ProgressDialog pd = ProgressDialog(context: context);
126 | pd.show(
127 | barrierDismissible: true,
128 | msg: "Please waiting...",
129 | hideValue: true,
130 | );
131 |
132 | /** You can update the message value after a certain action **/
133 | await Future.delayed(Duration(milliseconds: 1000));
134 | pd.update(msg: "Almost done...");
135 |
136 | await Future.delayed(Duration(milliseconds: 1000));
137 | pd.close();
138 | }
139 |
140 | _onlyMessageWithCompletionProgress(context) async {
141 | ProgressDialog pd = ProgressDialog(context: context);
142 | pd.show(
143 | barrierDismissible: true,
144 | msg: "Please waiting...",
145 | hideValue: true,
146 | completed: Completed(), // Set Completed
147 | );
148 |
149 | /** You can update the message value after a certain action **/
150 | await Future.delayed(Duration(milliseconds: 1000));
151 |
152 | /**
153 | * if you can't assign value and want to use completed object. You should set the Value to 100.
154 | * The dialog will close automatically.
155 | * **/
156 | pd.update(msg: "Almost done...", value: 100);
157 | }
158 |
159 | @override
160 | Widget build(BuildContext context) {
161 | return Scaffold(
162 | body: Container(
163 | child: Center(
164 | child: Column(
165 | mainAxisAlignment: MainAxisAlignment.center,
166 | children: [
167 | Padding(
168 | padding: const EdgeInsets.all(20.0),
169 | child: Text(
170 | 'Sn Progress Example',
171 | style: TextStyle(
172 | fontSize: 30.0,
173 | fontWeight: FontWeight.bold,
174 | ),
175 | ),
176 | ),
177 | MaterialButton(
178 | color: Color(0xfff7f7f7),
179 | child: Text('Normal Progress'),
180 | onPressed: () {
181 | _normalProgress(context);
182 | }),
183 | MaterialButton(
184 | color: Color(0xfff7f7f7),
185 | child: Text('Valuable Progress'),
186 | onPressed: () {
187 | _valuableProgress(context);
188 | }),
189 | MaterialButton(
190 | color: Color(0xfff7f7f7),
191 | child: Text('Preparing Progress'),
192 | onPressed: () {
193 | _preparingProgress(context);
194 | }),
195 | MaterialButton(
196 | color: Color(0xfff7f7f7),
197 | child: Text('Custom Progress'),
198 | onPressed: () {
199 | _customProgress(context);
200 | }),
201 | MaterialButton(
202 | color: Color(0xfff7f7f7),
203 | child: Text('Completed Progress'),
204 | onPressed: () {
205 | _completedProgress(context);
206 | }),
207 | MaterialButton(
208 | color: Color(0xfff7f7f7),
209 | child: Text('Message Progress'),
210 | onPressed: () {
211 | _onlyMessageProgress(context);
212 | }),
213 | MaterialButton(
214 | color: Color(0xfff7f7f7),
215 | child: Text('Message Progress With Completed'),
216 | onPressed: () {
217 | _onlyMessageWithCompletionProgress(context);
218 | }),
219 | ],
220 | ),
221 | ),
222 | ),
223 | );
224 | }
225 | }
226 |
227 | ```
228 |
--------------------------------------------------------------------------------
/lib/progress_dialog.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:sn_progress_dialog/enums/dialog_status.dart';
5 | import 'package:sn_progress_dialog/enums/progress_types.dart';
6 | import 'package:sn_progress_dialog/enums/value_position.dart';
7 | import 'package:sn_progress_dialog/options/completed.dart';
8 | import 'package:sn_progress_dialog/options/cancel.dart';
9 |
10 | /// A customizable progress dialog that displays loading states and completion messages.
11 | class ProgressDialog {
12 | /// Listens to the current progress value.
13 | final ValueNotifier _progress = ValueNotifier(0);
14 |
15 | /// Listens to the current message text.
16 | final ValueNotifier _msg = ValueNotifier('');
17 |
18 | /// Listens to the completion message.
19 | final ValueNotifier _completedMsg = ValueNotifier('');
20 |
21 | /// Indicates whether the dialog is currently displayed.
22 | bool _dialogIsOpen = false;
23 |
24 | /// The build context used to show the dialog.
25 | late BuildContext _context;
26 |
27 | /// Callback triggered when dialog status changes.
28 | ValueChanged? _onStatusChanged;
29 |
30 | /// Whether to show dialog in root navigator.
31 | /// If true, the dialog will be displayed above all other routes.
32 | late bool _useRootNavigator;
33 |
34 | /// Creates a progress dialog with the given build context.
35 | ///
36 | /// [context] - Required build context for showing the dialog
37 | /// [useRootNavigator] - Whether to show in root navigator. Defaults to true
38 | ProgressDialog({required context, bool? useRootNavigator}) {
39 | this._context = context;
40 | this._useRootNavigator = useRootNavigator ?? true;
41 | }
42 |
43 | /// Updates the dialog's progress value and message.
44 | ///
45 | /// [value] - New progress value between 0 and max
46 | /// [msg] - New message to display
47 | void update({int? value, String? msg}) {
48 | if (value != null) _progress.value = value;
49 | if (msg != null) _msg.value = msg;
50 | }
51 |
52 | /// Closes the dialog with optional delay.
53 | ///
54 | /// [delay] - Milliseconds to wait before closing. Defaults to 0.
55 | void close({int? delay = 0}) {
56 | if (delay == 0 || delay == null) {
57 | _closeDialog();
58 | return;
59 | }
60 | Future.delayed(Duration(milliseconds: delay), () {
61 | _closeDialog();
62 | });
63 | }
64 |
65 | /// Releases resources used by the dialog.
66 | /// Should be called when the dialog is no longer needed.
67 | void dispose() {
68 | _progress.dispose();
69 | _msg.dispose();
70 | _completedMsg.dispose();
71 | }
72 |
73 | /// Returns whether the dialog is currently open.
74 | bool isOpen() {
75 | return _dialogIsOpen;
76 | }
77 |
78 | /// Private method to close the dialog and update its status.
79 | void _closeDialog() {
80 | if (_dialogIsOpen) {
81 | Navigator.of(_context, rootNavigator: _useRootNavigator).pop();
82 | _dialogIsOpen = false;
83 | _setDialogStatus(DialogStatus.closed);
84 | }
85 | }
86 |
87 | /// Private method to notify status change listeners.
88 | void _setDialogStatus(DialogStatus status) {
89 | if (_onStatusChanged != null) _onStatusChanged!(status);
90 | }
91 |
92 | /// Creates a progress indicator with deterministic value.
93 | _valueProgress({Color? valueColor, Color? bgColor, required double value}) {
94 | return CircularProgressIndicator(
95 | backgroundColor: bgColor,
96 | valueColor: AlwaysStoppedAnimation(valueColor),
97 | value: value.toDouble() / 100,
98 | );
99 | }
100 |
101 | /// Creates an indeterminate progress indicator.
102 | _normalProgress({Color? valueColor, Color? bgColor}) {
103 | return CircularProgressIndicator(
104 | backgroundColor: bgColor,
105 | valueColor: AlwaysStoppedAnimation(valueColor),
106 | );
107 | }
108 |
109 | /// Shows the progress dialog with customizable options.
110 | ///
111 | /// Parameters:
112 | /// - [max] Maximum progress value (default: 100). This value determines when the progress is complete.
113 | /// - [msg] Message to display (default: "Default Message"). Can be updated using [update] method.
114 | /// - [completed] Configuration for completion state. Use this to customize completion message, delay, and image.
115 | /// If not provided, dialog will close immediately upon completion.
116 | /// - [cancel] Configuration for cancel button. Provides options for custom image and click handling.
117 | /// - [progressType] Type of progress indicator:
118 | /// * indeterminate: Shows spinning indicator
119 | /// * determinate: Shows actual progress (0-100%)
120 | /// - [valuePosition] Position of progress value text (center/right). Only applies when [hideValue] is false.
121 | /// - [backgroundColor] Dialog background color (default: Colors.white)
122 | /// - [surfaceTintColor] Dialog surface tint color for Material 3
123 | /// - [barrierColor] Color of the barrier behind the dialog (default: transparent)
124 | /// - [progressValueColor] Color of the progress indicator's fill (default: blueAccent)
125 | /// - [progressBgColor] Background color of the progress track (default: blueGrey)
126 | /// - [valueColor] Color of the progress value text (default: black87)
127 | /// - [msgColor] Color of the message text (default: black87)
128 | /// - [msgTextAlign] Alignment of the message text (default: center)
129 | /// - [msgFontWeight] Font weight of the message (default: bold)
130 | /// - [valueFontWeight] Font weight of the progress value (default: normal)
131 | /// - [valueFontSize] Font size of the progress value in logical pixels (default: 15.0)
132 | /// - [msgFontSize] Font size of the message in logical pixels (default: 17.0)
133 | /// - [msgMaxLines] Maximum lines for message text before ellipsis (default: 1)
134 | /// - [elevation] Dialog elevation in logical pixels (default: 5.0)
135 | /// - [borderRadius] Dialog corner radius in logical pixels (default: 15.0)
136 | /// - [barrierDismissible] Whether clicking outside closes the dialog (default: false)
137 | /// - [hideValue] Whether to hide the progress value text (default: false)
138 | /// - [closeWithDelay] Delay before closing in milliseconds (default: 100)
139 | /// Note: This is ignored if [completed] is provided.
140 | /// - [onStatusChanged] Callback for dialog status changes (opened/closed/completed)
141 | ///
142 | /// The dialog can be updated using the [update] method and closed manually using [close].
143 | /// Status changes can be monitored through the [onStatusChanged] callback.
144 | Future show({
145 | int max = 100,
146 | String msg = "Default Message",
147 | Completed? completed,
148 | Cancel? cancel,
149 | ProgressType progressType = ProgressType.indeterminate,
150 | ValuePosition valuePosition = ValuePosition.right,
151 | Color backgroundColor = Colors.white,
152 | Color? surfaceTintColor,
153 | Color barrierColor = Colors.transparent,
154 | Color progressValueColor = Colors.blueAccent,
155 | Color progressBgColor = Colors.blueGrey,
156 | Color valueColor = Colors.black87,
157 | Color msgColor = Colors.black87,
158 | TextAlign msgTextAlign = TextAlign.center,
159 | FontWeight msgFontWeight = FontWeight.bold,
160 | FontWeight valueFontWeight = FontWeight.normal,
161 | double valueFontSize = 15.0,
162 | double msgFontSize = 17.0,
163 | int msgMaxLines = 1,
164 | double elevation = 5.0,
165 | double borderRadius = 15.0,
166 | bool barrierDismissible = false,
167 | bool hideValue = false,
168 | int closeWithDelay = 100,
169 | ValueChanged? onStatusChanged,
170 | }) {
171 | _dialogIsOpen = true;
172 | _msg.value = msg;
173 | _onStatusChanged = onStatusChanged;
174 | _setDialogStatus(DialogStatus.opened);
175 |
176 | if (completed?.completedMsgFuture != null) {
177 | completed!.completedMsgFuture!.then((newMsg) {
178 | _completedMsg.value = newMsg;
179 | });
180 | } else if (completed != null) {
181 | _completedMsg.value = completed.completedMsg;
182 | }
183 |
184 | return showDialog(
185 | barrierDismissible: barrierDismissible,
186 | barrierColor: barrierColor,
187 | context: _context,
188 | useRootNavigator: _useRootNavigator,
189 | builder: (context) => PopScope(
190 | canPop: barrierDismissible,
191 | child: AlertDialog(
192 | surfaceTintColor: surfaceTintColor,
193 | backgroundColor: backgroundColor,
194 | elevation: elevation,
195 | shape: RoundedRectangleBorder(
196 | borderRadius: BorderRadius.all(
197 | Radius.circular(borderRadius),
198 | ),
199 | ),
200 | content: ValueListenableBuilder(
201 | valueListenable: _progress,
202 | builder: (BuildContext context, dynamic value, Widget? child) {
203 | if (value == max) {
204 | _setDialogStatus(DialogStatus.completed);
205 | completed == null
206 | ? close(delay: closeWithDelay)
207 | : close(delay: completed.completionDelay);
208 | }
209 | return Column(
210 | mainAxisSize: MainAxisSize.min,
211 | children: [
212 | if (cancel != null) ...[
213 | cancel.autoHidden && value == max
214 | ? SizedBox.shrink()
215 | : Align(
216 | alignment: Alignment.topRight,
217 | child: InkWell(
218 | highlightColor: Colors.transparent,
219 | splashColor: Colors.transparent,
220 | onTap: () {
221 | close();
222 | if (cancel.cancelClicked != null) {
223 | cancel.cancelClicked!();
224 | }
225 | },
226 | child: Image(
227 | width: cancel.cancelImageSize,
228 | height: cancel.cancelImageSize,
229 | color: cancel.cancelImageColor,
230 | image: cancel.cancelImage ??
231 | AssetImage(
232 | "images/cancel.png",
233 | package: "sn_progress_dialog",
234 | ),
235 | ),
236 | ),
237 | ),
238 | ],
239 | Row(
240 | children: [
241 | value == max && completed != null
242 | ? Image(
243 | width: 40,
244 | height: 40,
245 | image: completed.completedImage ??
246 | AssetImage(
247 | "images/completed.png",
248 | package: "sn_progress_dialog",
249 | ),
250 | )
251 | : Container(
252 | width: 35.0,
253 | height: 35.0,
254 | child: progressType.isIndeterminate
255 | ? _normalProgress(
256 | bgColor: progressBgColor,
257 | valueColor: progressValueColor,
258 | )
259 | : value == 0
260 | ? _normalProgress(
261 | bgColor: progressBgColor,
262 | valueColor: progressValueColor,
263 | )
264 | : _valueProgress(
265 | valueColor: progressValueColor,
266 | bgColor: progressBgColor,
267 | value: (value / max) * 100,
268 | ),
269 | ),
270 | Expanded(
271 | child: Padding(
272 | padding: const EdgeInsets.only(
273 | left: 15.0,
274 | top: 8.0,
275 | bottom: 8.0,
276 | ),
277 | child: ValueListenableBuilder(
278 | valueListenable: _msg,
279 | builder: (BuildContext context, dynamic msgValue,
280 | Widget? child) {
281 | return ValueListenableBuilder(
282 | valueListenable: _completedMsg,
283 | builder: (context, completedMsgValue, child) {
284 | return Text(
285 | value == max && completed != null
286 | ? completedMsgValue
287 | : msgValue,
288 | textAlign: msgTextAlign,
289 | maxLines: msgMaxLines,
290 | overflow: TextOverflow.ellipsis,
291 | style: TextStyle(
292 | fontSize: msgFontSize,
293 | color: msgColor,
294 | fontWeight: msgFontWeight,
295 | ),
296 | );
297 | },
298 | );
299 | },
300 | ),
301 | ),
302 | ),
303 | ],
304 | ),
305 | hideValue == false
306 | ? Align(
307 | child: Text(
308 | value <= 0 ? '' : '${_progress.value}/$max',
309 | style: TextStyle(
310 | fontSize: valueFontSize,
311 | color: valueColor,
312 | fontWeight: valueFontWeight,
313 | decoration: value == max
314 | ? TextDecoration.lineThrough
315 | : TextDecoration.none,
316 | ),
317 | ),
318 | alignment: valuePosition == ValuePosition.right
319 | ? Alignment.bottomRight
320 | : Alignment.bottomCenter,
321 | )
322 | : SizedBox.shrink()
323 | ],
324 | );
325 | },
326 | ),
327 | ),
328 | onPopInvoked: (didPop) {
329 | if (didPop) {
330 | _dialogIsOpen = false;
331 | _setDialogStatus(DialogStatus.closed);
332 | }
333 | },
334 | ),
335 | );
336 | }
337 | }
338 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | FRAMEWORK_SEARCH_PATHS = (
293 | "$(inherited)",
294 | "$(PROJECT_DIR)/Flutter",
295 | );
296 | INFOPLIST_FILE = Runner/Info.plist;
297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
298 | LIBRARY_SEARCH_PATHS = (
299 | "$(inherited)",
300 | "$(PROJECT_DIR)/Flutter",
301 | );
302 | PRODUCT_BUNDLE_IDENTIFIER = com.snstudio.example;
303 | PRODUCT_NAME = "$(TARGET_NAME)";
304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
305 | SWIFT_VERSION = 5.0;
306 | VERSIONING_SYSTEM = "apple-generic";
307 | };
308 | name = Profile;
309 | };
310 | 97C147031CF9000F007C117D /* Debug */ = {
311 | isa = XCBuildConfiguration;
312 | buildSettings = {
313 | ALWAYS_SEARCH_USER_PATHS = NO;
314 | CLANG_ANALYZER_NONNULL = YES;
315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
316 | CLANG_CXX_LIBRARY = "libc++";
317 | CLANG_ENABLE_MODULES = YES;
318 | CLANG_ENABLE_OBJC_ARC = YES;
319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
320 | CLANG_WARN_BOOL_CONVERSION = YES;
321 | CLANG_WARN_COMMA = YES;
322 | CLANG_WARN_CONSTANT_CONVERSION = YES;
323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
325 | CLANG_WARN_EMPTY_BODY = YES;
326 | CLANG_WARN_ENUM_CONVERSION = YES;
327 | CLANG_WARN_INFINITE_RECURSION = YES;
328 | CLANG_WARN_INT_CONVERSION = YES;
329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
334 | CLANG_WARN_STRICT_PROTOTYPES = YES;
335 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
336 | CLANG_WARN_UNREACHABLE_CODE = YES;
337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
339 | COPY_PHASE_STRIP = NO;
340 | DEBUG_INFORMATION_FORMAT = dwarf;
341 | ENABLE_STRICT_OBJC_MSGSEND = YES;
342 | ENABLE_TESTABILITY = YES;
343 | GCC_C_LANGUAGE_STANDARD = gnu99;
344 | GCC_DYNAMIC_NO_PIC = NO;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_OPTIMIZATION_LEVEL = 0;
347 | GCC_PREPROCESSOR_DEFINITIONS = (
348 | "DEBUG=1",
349 | "$(inherited)",
350 | );
351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
353 | GCC_WARN_UNDECLARED_SELECTOR = YES;
354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
355 | GCC_WARN_UNUSED_FUNCTION = YES;
356 | GCC_WARN_UNUSED_VARIABLE = YES;
357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
358 | MTL_ENABLE_DEBUG_INFO = YES;
359 | ONLY_ACTIVE_ARCH = YES;
360 | SDKROOT = iphoneos;
361 | TARGETED_DEVICE_FAMILY = "1,2";
362 | };
363 | name = Debug;
364 | };
365 | 97C147041CF9000F007C117D /* Release */ = {
366 | isa = XCBuildConfiguration;
367 | buildSettings = {
368 | ALWAYS_SEARCH_USER_PATHS = NO;
369 | CLANG_ANALYZER_NONNULL = YES;
370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
371 | CLANG_CXX_LIBRARY = "libc++";
372 | CLANG_ENABLE_MODULES = YES;
373 | CLANG_ENABLE_OBJC_ARC = YES;
374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
375 | CLANG_WARN_BOOL_CONVERSION = YES;
376 | CLANG_WARN_COMMA = YES;
377 | CLANG_WARN_CONSTANT_CONVERSION = YES;
378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
380 | CLANG_WARN_EMPTY_BODY = YES;
381 | CLANG_WARN_ENUM_CONVERSION = YES;
382 | CLANG_WARN_INFINITE_RECURSION = YES;
383 | CLANG_WARN_INT_CONVERSION = YES;
384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
389 | CLANG_WARN_STRICT_PROTOTYPES = YES;
390 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
391 | CLANG_WARN_UNREACHABLE_CODE = YES;
392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
394 | COPY_PHASE_STRIP = NO;
395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
396 | ENABLE_NS_ASSERTIONS = NO;
397 | ENABLE_STRICT_OBJC_MSGSEND = YES;
398 | GCC_C_LANGUAGE_STANDARD = gnu99;
399 | GCC_NO_COMMON_BLOCKS = YES;
400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
402 | GCC_WARN_UNDECLARED_SELECTOR = YES;
403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
404 | GCC_WARN_UNUSED_FUNCTION = YES;
405 | GCC_WARN_UNUSED_VARIABLE = YES;
406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
407 | MTL_ENABLE_DEBUG_INFO = NO;
408 | SDKROOT = iphoneos;
409 | SUPPORTED_PLATFORMS = iphoneos;
410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
411 | TARGETED_DEVICE_FAMILY = "1,2";
412 | VALIDATE_PRODUCT = YES;
413 | };
414 | name = Release;
415 | };
416 | 97C147061CF9000F007C117D /* Debug */ = {
417 | isa = XCBuildConfiguration;
418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
419 | buildSettings = {
420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
421 | CLANG_ENABLE_MODULES = YES;
422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
423 | ENABLE_BITCODE = NO;
424 | FRAMEWORK_SEARCH_PATHS = (
425 | "$(inherited)",
426 | "$(PROJECT_DIR)/Flutter",
427 | );
428 | INFOPLIST_FILE = Runner/Info.plist;
429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
430 | LIBRARY_SEARCH_PATHS = (
431 | "$(inherited)",
432 | "$(PROJECT_DIR)/Flutter",
433 | );
434 | PRODUCT_BUNDLE_IDENTIFIER = com.snstudio.example;
435 | PRODUCT_NAME = "$(TARGET_NAME)";
436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
438 | SWIFT_VERSION = 5.0;
439 | VERSIONING_SYSTEM = "apple-generic";
440 | };
441 | name = Debug;
442 | };
443 | 97C147071CF9000F007C117D /* Release */ = {
444 | isa = XCBuildConfiguration;
445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
446 | buildSettings = {
447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
448 | CLANG_ENABLE_MODULES = YES;
449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
450 | ENABLE_BITCODE = NO;
451 | FRAMEWORK_SEARCH_PATHS = (
452 | "$(inherited)",
453 | "$(PROJECT_DIR)/Flutter",
454 | );
455 | INFOPLIST_FILE = Runner/Info.plist;
456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
457 | LIBRARY_SEARCH_PATHS = (
458 | "$(inherited)",
459 | "$(PROJECT_DIR)/Flutter",
460 | );
461 | PRODUCT_BUNDLE_IDENTIFIER = com.snstudio.example;
462 | PRODUCT_NAME = "$(TARGET_NAME)";
463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
464 | SWIFT_VERSION = 5.0;
465 | VERSIONING_SYSTEM = "apple-generic";
466 | };
467 | name = Release;
468 | };
469 | /* End XCBuildConfiguration section */
470 |
471 | /* Begin XCConfigurationList section */
472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
473 | isa = XCConfigurationList;
474 | buildConfigurations = (
475 | 97C147031CF9000F007C117D /* Debug */,
476 | 97C147041CF9000F007C117D /* Release */,
477 | 249021D3217E4FDB00AE95B9 /* Profile */,
478 | );
479 | defaultConfigurationIsVisible = 0;
480 | defaultConfigurationName = Release;
481 | };
482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
483 | isa = XCConfigurationList;
484 | buildConfigurations = (
485 | 97C147061CF9000F007C117D /* Debug */,
486 | 97C147071CF9000F007C117D /* Release */,
487 | 249021D4217E4FDB00AE95B9 /* Profile */,
488 | );
489 | defaultConfigurationIsVisible = 0;
490 | defaultConfigurationName = Release;
491 | };
492 | /* End XCConfigurationList section */
493 | };
494 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
495 | }
496 |
--------------------------------------------------------------------------------