diff --git a/.gitignore b/.gitignore
index b11d3bf..6eddbb1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,28 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# VSCode related
+.vscode/
+
+# Flutter/Dart/Pub related
+# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
+/pubspec.lock
+**/doc/api/
.dart_tool/
.packages
diff --git a/.metadata b/.metadata
index 8e195da..b2c661a 100644
--- a/.metadata
+++ b/.metadata
@@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.
version:
- revision: 62bd79521d8d007524e351747471ba66696fc2d4
- channel: stable
+ revision: "67457e669f79e9f8d13d7a68fe09775fefbb79f4"
+ channel: "stable"
-project_type: plugin
+project_type: package
diff --git a/.pubignore b/.pubignore
new file mode 100644
index 0000000..809f15f
--- /dev/null
+++ b/.pubignore
@@ -0,0 +1 @@
+README.md.old
diff --git a/README.md b/README.md
index c2e5d48..1e87a5e 100644
--- a/README.md
+++ b/README.md
@@ -1,35 +1,28 @@
-# modal_progress_hud(_nsn)
+# modal_progress_hud_nsn
+[](https://pub.dartlang.org/packages/modal_progress_hud_nsn)
+
A simple widget wrapper to enable modal progress HUD (a modal progress indicator, HUD = Heads Up Display)
-[](https://pub.dartlang.org/packages/modal_progress_hud_nsn)
-~~Inspired by [this](https://codingwithjoe.com/flutter-how-to-build-a-modal-progress-indicator/) article.~~ Link broken, Dont click.
-
-A fork of [this](https://github.com/mmcc007/modal_progress_hud) with support for Null Safety.
-
-## Demo
-
-
-
-_See example for details_
+A fork of [the original modal_progress_hud by mmcc007](https://github.com/mmcc007/modal_progress_hud) with Null Safety and additional features.
## Usage
-Add the package to your `pubspec.yml` file.
+Add the `modal_progress_hud_nsn` to dependencies in `pubspec.yaml`.
```yml
dependencies:
modal_progress_hud_nsn: ^0.4.0
```
-Next, import the library into your widget.
+Next, import the library into your app.
```dart
import 'package:modal_progress_hud_nsn/modal_progress_hud_nsn.dart';
```
-Now, all you have to do is simply wrap your widget as a child of `ModalProgressHUD`, typically a form, together with a boolean that is maintained in local state.
+Now, wrap your widget as a child of `ModalProgressHUD`, typically a form, together with a boolean variable that is maintained in local state.
```dart
...
@@ -48,7 +41,7 @@ Widget build(BuildContext context) {
## Options
-The current parameters are customizable in the constructor
+Below parameters can be customised accordingly.
```dart
ModalProgressHUD(
@@ -63,21 +56,16 @@ ModalProgressHUD(
);
```
-## Similar Packages
-
-* [modal_progress_hud](https://pub.dev/packages/modal_progress_hud) : Original
-* [modal_progress_hud_alt](https://pub.dev/packages/modal_progress_hud_alt) : Alternative
-* [blurry_modal_progress_hud](https://pub.dev/packages/blurry_modal_progress_hud) : With blur
-* [flutter_progress_hud](https://pub.dev/packages/flutter_progress_hud) : Light weight and with fade
-* [loading_overlay](https://pub.dev/packages/loading_overlay) : Another fork of original with fade
-
## Example
-Here is an example app that demonstrates the usage.
+An example app that demonstrates the usage.
-1. On initial load, `_saving` is false which causes your child widget to display
-2. When the form is submitted, `_saving` is set to true, which will display the modal
-3. Once the async call is complete, `_saving` is set back to false, hiding the modal
+1. On initial load, `_saving` defaults to false which causes your child widget to display.
+2. When the form is submitted, `_saving` is set to true, which will display the modal.
+3. Once the async call is complete, `_saving` is set back to false, hiding the modal.
+
+
+Example Code
```dart
class SettingsPage extends StatefulWidget {
@@ -137,10 +125,22 @@ class _SettingsPageState extends State {
);
}
}
-
```
+
-Update: See this [article](https://medium.com/@nocnoc/the-secret-to-async-validation-on-flutter-forms-4b273c667c03) on Medium about async form validation
+## Similar Alternatives
+
+* [modal_progress_hud](https://pub.dev/packages/modal_progress_hud) : Original
+* [modal_progress_hud_alt](https://pub.dev/packages/modal_progress_hud_alt) : Alternative
+* [blurry_modal_progress_hud](https://pub.dev/packages/blurry_modal_progress_hud) : With blur
+* [flutter_progress_hud](https://pub.dev/packages/flutter_progress_hud) : Light weight and with fade
+* [loading_overlay](https://pub.dev/packages/loading_overlay) : Another fork of original with fade
+
+
+
+## Useful Resources
+
+ See this [article](https://medium.com/@nocnoc/the-secret-to-async-validation-on-flutter-forms-4b273c667c03) on Medium about async form validation
See the [example application](https://github.com/kphanipavan/modal_progress_hud_nsn/tree/master/example) source
for a complete sample app using the modal progress HUD. Included in the
diff --git a/README.md.old b/README.md.old
new file mode 100644
index 0000000..c2e5d48
--- /dev/null
+++ b/README.md.old
@@ -0,0 +1,153 @@
+# modal_progress_hud(_nsn)
+
+A simple widget wrapper to enable modal progress HUD (a modal progress indicator, HUD = Heads Up Display)
+
+[](https://pub.dartlang.org/packages/modal_progress_hud_nsn)
+
+~~Inspired by [this](https://codingwithjoe.com/flutter-how-to-build-a-modal-progress-indicator/) article.~~ Link broken, Dont click.
+
+A fork of [this](https://github.com/mmcc007/modal_progress_hud) with support for Null Safety.
+
+## Demo
+
+
+
+_See example for details_
+
+## Usage
+
+Add the package to your `pubspec.yml` file.
+
+```yml
+dependencies:
+ modal_progress_hud_nsn: ^0.4.0
+```
+
+Next, import the library into your widget.
+
+```dart
+import 'package:modal_progress_hud_nsn/modal_progress_hud_nsn.dart';
+```
+
+Now, all you have to do is simply wrap your widget as a child of `ModalProgressHUD`, typically a form, together with a boolean that is maintained in local state.
+
+```dart
+...
+bool _saving = false
+...
+
+@override
+Widget build(BuildContext context) {
+ return Scaffold(
+ body: ModalProgressHUD(child: Container(
+ Form(...)
+ ), inAsyncCall: _saving),
+ );
+}
+```
+
+## Options
+
+The current parameters are customizable in the constructor
+
+```dart
+ModalProgressHUD(
+ @required inAsyncCall: bool,
+ @required child: Widget,
+ opacity: double,
+ color: Color,
+ progressIndicator: CircularProgressIndicator,
+ offset: double
+ dismissible: bool,
+ blur: double,
+);
+```
+
+## Similar Packages
+
+* [modal_progress_hud](https://pub.dev/packages/modal_progress_hud) : Original
+* [modal_progress_hud_alt](https://pub.dev/packages/modal_progress_hud_alt) : Alternative
+* [blurry_modal_progress_hud](https://pub.dev/packages/blurry_modal_progress_hud) : With blur
+* [flutter_progress_hud](https://pub.dev/packages/flutter_progress_hud) : Light weight and with fade
+* [loading_overlay](https://pub.dev/packages/loading_overlay) : Another fork of original with fade
+
+## Example
+
+Here is an example app that demonstrates the usage.
+
+1. On initial load, `_saving` is false which causes your child widget to display
+2. When the form is submitted, `_saving` is set to true, which will display the modal
+3. Once the async call is complete, `_saving` is set back to false, hiding the modal
+
+```dart
+class SettingsPage extends StatefulWidget {
+ @override
+ _SettingsPageState createState() => new _SettingsPageState();
+}
+
+class _SettingsPageState extends State {
+ bool _saving = false;
+
+ void _submit() {
+
+ setState(() {
+ _saving = true;
+ });
+
+ //Simulate a service call
+ print('submitting to backend...');
+ new Future.delayed(new Duration(seconds: 4), () {
+ setState(() {
+ _saving = false;
+ });
+ });
+ }
+
+ Widget _buildWidget() {
+ return new Form(
+ child: new Column(
+ children: [
+ new SwitchListTile(
+ title: const Text('Bedroom'),
+ value: _bedroom,
+ onChanged: (bool value) {
+ setState(() {
+ _bedroom = value;
+ });
+ },
+ secondary: const Icon(Icons.hotel),
+ ),
+ new RaisedButton(
+ onPressed: _submit,
+ child: new Text('Save'),
+ ),
+ ],
+ ),
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return new Scaffold(
+ appBar: new AppBar(
+ title: new Text('Flutter Progress Indicator Demo'),
+ backgroundColor: Colors.blue,
+ ),
+ body: ModalProgressHUD(child: _buildWidget(), inAsyncCall: _saving),
+ );
+ }
+}
+
+```
+
+Update: See this [article](https://medium.com/@nocnoc/the-secret-to-async-validation-on-flutter-forms-4b273c667c03) on Medium about async form validation
+
+See the [example application](https://github.com/kphanipavan/modal_progress_hud_nsn/tree/master/example) source
+for a complete sample app using the modal progress HUD. Included in the
+example is a method for using a form's validators while making async
+calls (see [flutter/issues/9688](https://github.com/flutter/flutter/issues/9688) for details).
+
+## Issues and feedback
+
+Please file [issues](https://github.com/kphanipavan/modal_progress_hud_nsn/issues/new)
+to send feedback or report a bug. Thank you!
diff --git a/android/.gitignore b/android/.gitignore
deleted file mode 100644
index 161bdcd..0000000
--- a/android/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea/workspace.xml
-/.idea/libraries
-.DS_Store
-/build
-/captures
-.cxx
diff --git a/android/build.gradle b/android/build.gradle
deleted file mode 100644
index 73b3db5..0000000
--- a/android/build.gradle
+++ /dev/null
@@ -1,50 +0,0 @@
-group 'boi.walle.modal_progress_hud_nsn'
-version '0.4.0'
-
-buildscript {
- ext.kotlin_version = '1.9.20'
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:8.1.4'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-apply plugin: 'com.android.library'
-apply plugin: 'kotlin-android'
-
-android {
- if (project.android.hasProperty("namespace")) {
- namespace 'boi.walle.modal_progress_hud_nsn'
- }
-
- compileSdk 31
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- kotlinOptions {
- jvmTarget = '1.8'
- }
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- defaultConfig {
- minSdkVersion 16
- }
-}
diff --git a/android/gradle/wrapper/gradle-wrapper.jar b/android/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index 249e583..0000000
Binary files a/android/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index da1db5f..0000000
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
diff --git a/android/gradlew b/android/gradlew
deleted file mode 100755
index a69d9cb..0000000
--- a/android/gradlew
+++ /dev/null
@@ -1,240 +0,0 @@
-#!/bin/sh
-
-#
-# Copyright © 2015-2021 the original authors.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-##############################################################################
-#
-# Gradle start up script for POSIX generated by Gradle.
-#
-# Important for running:
-#
-# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
-# noncompliant, but you have some other compliant shell such as ksh or
-# bash, then to run this script, type that shell name before the whole
-# command line, like:
-#
-# ksh Gradle
-#
-# Busybox and similar reduced shells will NOT work, because this script
-# requires all of these POSIX shell features:
-# * functions;
-# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
-# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
-# * compound commands having a testable exit status, especially «case»;
-# * various built-in commands including «command», «set», and «ulimit».
-#
-# Important for patching:
-#
-# (2) This script targets any POSIX shell, so it avoids extensions provided
-# by Bash, Ksh, etc; in particular arrays are avoided.
-#
-# The "traditional" practice of packing multiple parameters into a
-# space-separated string is a well documented source of bugs and security
-# problems, so this is (mostly) avoided, by progressively accumulating
-# options in "$@", and eventually passing that to Java.
-#
-# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
-# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
-# see the in-line comments for details.
-#
-# There are tweaks for specific operating systems such as AIX, CygWin,
-# Darwin, MinGW, and NonStop.
-#
-# (3) This script is generated from the Groovy template
-# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
-# within the Gradle project.
-#
-# You can find Gradle at https://github.com/gradle/gradle/.
-#
-##############################################################################
-
-# Attempt to set APP_HOME
-
-# Resolve links: $0 may be a link
-app_path=$0
-
-# Need this for daisy-chained symlinks.
-while
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
- [ -h "$app_path" ]
-do
- ls=$( ls -ld "$app_path" )
- link=${ls#*' -> '}
- case $link in #(
- /*) app_path=$link ;; #(
- *) app_path=$APP_HOME$link ;;
- esac
-done
-
-APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
-
-APP_NAME="Gradle"
-APP_BASE_NAME=${0##*/}
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD=maximum
-
-warn () {
- echo "$*"
-} >&2
-
-die () {
- echo
- echo "$*"
- echo
- exit 1
-} >&2
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-nonstop=false
-case "$( uname )" in #(
- CYGWIN* ) cygwin=true ;; #(
- Darwin* ) darwin=true ;; #(
- MSYS* | MINGW* ) msys=true ;; #(
- NONSTOP* ) nonstop=true ;;
-esac
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD=$JAVA_HOME/jre/sh/java
- else
- JAVACMD=$JAVA_HOME/bin/java
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD=java
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
- case $MAX_FD in #(
- max*)
- MAX_FD=$( ulimit -H -n ) ||
- warn "Could not query maximum file descriptor limit"
- esac
- case $MAX_FD in #(
- '' | soft) :;; #(
- *)
- ulimit -n "$MAX_FD" ||
- warn "Could not set maximum file descriptor limit to $MAX_FD"
- esac
-fi
-
-# Collect all arguments for the java command, stacking in reverse order:
-# * args from the command line
-# * the main class name
-# * -classpath
-# * -D...appname settings
-# * --module-path (only if needed)
-# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
-
-# For Cygwin or MSYS, switch paths to Windows format before running java
-if "$cygwin" || "$msys" ; then
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
-
- JAVACMD=$( cygpath --unix "$JAVACMD" )
-
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- for arg do
- if
- case $arg in #(
- -*) false ;; # don't mess with options #(
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
- [ -e "$t" ] ;; #(
- *) false ;;
- esac
- then
- arg=$( cygpath --path --ignore --mixed "$arg" )
- fi
- # Roll the args list around exactly as many times as the number of
- # args, so each arg winds up back in the position where it started, but
- # possibly modified.
- #
- # NB: a `for` loop captures its iteration list before it begins, so
- # changing the positional parameters here affects neither the number of
- # iterations, nor the values presented in `arg`.
- shift # remove old arg
- set -- "$@" "$arg" # push replacement arg
- done
-fi
-
-# Collect all arguments for the java command;
-# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
-# shell script including quotes and variable substitutions, so put them in
-# double quotes to make sure that they get re-expanded; and
-# * put everything else in single quotes, so that it's not re-expanded.
-
-set -- \
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
- -classpath "$CLASSPATH" \
- org.gradle.wrapper.GradleWrapperMain \
- "$@"
-
-# Stop when "xargs" is not available.
-if ! command -v xargs >/dev/null 2>&1
-then
- die "xargs is not available"
-fi
-
-# Use "xargs" to parse quoted args.
-#
-# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
-#
-# In Bash we could simply go:
-#
-# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
-# set -- "${ARGS[@]}" "$@"
-#
-# but POSIX shell has neither arrays nor command substitution, so instead we
-# post-process each arg (as a line of input to sed) to backslash-escape any
-# character that might be a shell metacharacter, then use eval to reverse
-# that process (while maintaining the separation between arguments), and wrap
-# the whole thing up as a single "set" statement.
-#
-# This will of course break if any of these variables contains a newline or
-# an unmatched quote.
-#
-
-eval "set -- $(
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
- xargs -n1 |
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
- tr '\n' ' '
- )" '"$@"'
-
-exec "$JAVACMD" "$@"
diff --git a/android/gradlew.bat b/android/gradlew.bat
deleted file mode 100644
index 53a6b23..0000000
--- a/android/gradlew.bat
+++ /dev/null
@@ -1,91 +0,0 @@
-@rem
-@rem Copyright 2015 the original author or authors.
-@rem
-@rem Licensed under the Apache License, Version 2.0 (the "License");
-@rem you may not use this file except in compliance with the License.
-@rem You may obtain a copy of the License at
-@rem
-@rem https://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing, software
-@rem distributed under the License is distributed on an "AS IS" BASIS,
-@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-@rem See the License for the specific language governing permissions and
-@rem limitations under the License.
-@rem
-
-@if "%DEBUG%"=="" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%"=="" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Resolve any "." and ".." in APP_HOME to make it shorter.
-for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if %ERRORLEVEL% equ 0 goto execute
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
-
-:end
-@rem End local scope for the variables with windows NT shell
-if %ERRORLEVEL% equ 0 goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-set EXIT_CODE=%ERRORLEVEL%
-if %EXIT_CODE% equ 0 set EXIT_CODE=1
-if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
-exit /b %EXIT_CODE%
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
diff --git a/android/settings.gradle b/android/settings.gradle
deleted file mode 100644
index cfa6b5d..0000000
--- a/android/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-rootProject.name = 'modal_progress_hud_nsn'
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
deleted file mode 100644
index 994983c..0000000
--- a/android/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
diff --git a/android/src/main/kotlin/boi/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt b/android/src/main/kotlin/boi/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt
deleted file mode 100644
index 9f12290..0000000
--- a/android/src/main/kotlin/boi/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt
+++ /dev/null
@@ -1,35 +0,0 @@
-package boi.walle.modal_progress_hud_nsn
-
-import androidx.annotation.NonNull
-
-import io.flutter.embedding.engine.plugins.FlutterPlugin
-import io.flutter.plugin.common.MethodCall
-import io.flutter.plugin.common.MethodChannel
-import io.flutter.plugin.common.MethodChannel.MethodCallHandler
-import io.flutter.plugin.common.MethodChannel.Result
-
-/** ModalProgressHudNsnPlugin */
-class ModalProgressHudNsnPlugin: FlutterPlugin, MethodCallHandler {
- /// The MethodChannel that will the communication between Flutter and native Android
- ///
- /// This local reference serves to register the plugin with the Flutter Engine and unregister it
- /// when the Flutter Engine is detached from the Activity
- private lateinit var channel : MethodChannel
-
- override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
- channel = MethodChannel(flutterPluginBinding.binaryMessenger, "modal_progress_hud_nsn")
- channel.setMethodCallHandler(this)
- }
-
- override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) {
- if (call.method == "getPlatformVersion") {
- result.success("Android ${android.os.Build.VERSION.RELEASE}")
- } else {
- result.notImplemented()
- }
- }
-
- override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) {
- channel.setMethodCallHandler(null)
- }
-}
diff --git a/demo.mp4 b/demo.mp4
deleted file mode 100644
index f360fc7..0000000
Binary files a/demo.mp4 and /dev/null differ
diff --git a/example/.metadata b/example/.metadata
index 20eb09c..eea2802 100644
--- a/example/.metadata
+++ b/example/.metadata
@@ -1,11 +1,11 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
-# This file should be version controlled.
+# This file should be version controlled and should not be manually edited.
version:
- revision: 62bd79521d8d007524e351747471ba66696fc2d4
- channel: stable
+ revision: "67457e669f79e9f8d13d7a68fe09775fefbb79f4"
+ channel: "stable"
project_type: app
@@ -13,26 +13,26 @@ project_type: app
migration:
platforms:
- platform: root
- create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
+ base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
- platform: android
- create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
+ base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
- platform: ios
- create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
+ base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
- platform: linux
- create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
+ base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
- platform: macos
- create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
+ base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
- platform: web
- create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
+ base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
- platform: windows
- create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
+ base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4
# User provided section
diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml
index 61b6c4d..0d29021 100644
--- a/example/analysis_options.yaml
+++ b/example/analysis_options.yaml
@@ -13,8 +13,7 @@ linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
- # and their documentation is published at
- # https://dart-lang.github.io/linter/lints/index.html.
+ # and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle
index 565fed8..118ee1d 100644
--- a/example/android/app/build.gradle
+++ b/example/android/app/build.gradle
@@ -1,3 +1,9 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
}
}
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
@@ -21,11 +22,8 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
android {
+ namespace "com.example.example"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
@@ -44,7 +42,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId "boi.walle.modal_progress_hud_nsn_example"
+ applicationId "com.example.example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
@@ -66,6 +64,4 @@ flutter {
source '../..'
}
-dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
+dependencies {}
diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml
index d5ef7fe..399f698 100644
--- a/example/android/app/src/debug/AndroidManifest.xml
+++ b/example/android/app/src/debug/AndroidManifest.xml
@@ -1,5 +1,4 @@
-
+
@@ -27,28 +28,32 @@
-
+
modal_progress_hud_nsn_example
+
-