Commit b519e9dd authored by HMKS Herath's avatar HMKS Herath

Update dog breed rec UI

parent 715ddc6c
Pipeline #1491 failed with stages
#Tue Sep 15 14:16:27 IST 2020
gradle.version=6.1.1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
#Tue Sep 15 14:15:28 IST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$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=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# 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
;;
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" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
@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 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=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
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 init
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
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
: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 %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="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!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
import 'package:fitnessapp/constants.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_form_builder/flutter_form_builder.dart';
import 'package:intl/intl.dart';
class DogDetails extends StatefulWidget {
@override
_DogDetailsState createState() => _DogDetailsState();
}
class _DogDetailsState extends State<DogDetails> {
final GlobalKey<FormBuilderState> _fbKey = GlobalKey<FormBuilderState>();
var genderOptions = ['Male', 'Female'];
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
padding: EdgeInsets.all(20),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
SizedBox(height: 1),
Text(
'Fill In The Details',
style: TextStyle(
color: kPrimaryGreenColor,
fontWeight: FontWeight.w600,
fontSize: 38,
),
),
SizedBox(height: 1),
Text(
'Image Here',
style: TextStyle(
color: kTextMediumColor,
fontSize: 18,
),
),
SizedBox(height: 1),
Container(
padding: EdgeInsets.fromLTRB(50, 30, 50, 30),
color: kPrimaryGreenColor,
child: FormBuilder(
key: _fbKey,
autovalidate: true,
child: Column(
children: [
FormBuilderTextField(
attribute: "name",
style: TextStyle(color: kBackgroundColor),
decoration: InputDecoration(labelText: "Name", labelStyle: TextStyle(color: kBackgroundColor)),
validators: [
FormBuilderValidators.required()
],
),
FormBuilderTextField(
attribute: "breed",
style: TextStyle(color: kBackgroundColor),
decoration: InputDecoration(labelText: "Breed", labelStyle: TextStyle(color: kBackgroundColor)),
validators: [
FormBuilderValidators.required()
],
),
FormBuilderDropdown(
attribute: "gender",
dropdownColor: Colors.grey,
decoration: InputDecoration(labelText: "Select Gender", labelStyle: TextStyle(color: kBackgroundColor)),
validators: [
FormBuilderValidators.required()
],
items: genderOptions.map((gender) => DropdownMenuItem(
value: gender,
child: Text('$gender', style: TextStyle(color: kBackgroundColor)),
)).toList(),
allowClear: true,
),
FormBuilderDateTimePicker(
attribute: "birthday",
style: TextStyle(color: kBackgroundColor),
decoration: InputDecoration(labelText: "Birthday", labelStyle: TextStyle(color: kBackgroundColor)),
inputType: InputType.date,
initialDate: DateTime.now(),
format: DateFormat("yyyy-MM-dd"),
validators: [
FormBuilderValidators.required()
],
),
],
),
),
),
RaisedButton(
child: Text(
"Save",
style: TextStyle(
color: kBackgroundColor,
fontSize: 18,
),
),
color: kPrimaryGreenColor,
padding: EdgeInsets.fromLTRB(50, 15, 50, 15),
onPressed: () => null,
),
],
),
),
),
);
}
}
......@@ -2,7 +2,7 @@ import 'package:http/http.dart' as http;
import 'dart:convert';
class SearchService {
static String ip = 'http://192.168.1.27:8000';
static String ip = 'http://localhost:8080';
static String username = 'Janadi';
static String password = 'janadi2.';
......
......@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
//const kPrimaryColor = Color(0xFF6F35A5);
const kPrimaryLightColor = Color(0xFFF1E6FF);
const kPrimaryGreenColor = Color(0xFF55BD8B);
const kTextColor = Color(0xFF1E2432);
const kTextMediumColor = Color(0xFF53627C);
......
import 'package:flutter/material.dart';
import 'package:fitnessapp/Screens/WalkingPatternRecognition/monthly_details_screen.dart';
import 'package:fitnessapp/constants.dart';
import 'package:fitnessapp/Screens/WalkingPatternRecognition/monthly_details_screen.dart';
import 'Screens/DogBreedRecognition/dog_breed_identification_screen.dart';
import 'Screens/DogBreedRecognition/dog_details_screen.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
......@@ -15,7 +17,9 @@ class MyApp extends StatelessWidget {
scaffoldBackgroundColor: Colors.white,
),
debugShowCheckedModeBanner: false,
home: MonthlyDetailsScreen(),
home: DogDetails(),
//home: DogBreedIdentification(),
//home: MonthlyDetailsScreen(),
);
}
}
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Tue Sep 15 14:15:16 IST 2020
sdk.dir=C\:\\Users\\Lakmal\\AppData\\Local\\Android\\Sdk
......@@ -7,7 +7,28 @@ packages:
name: animations
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
version: "1.1.2"
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
asn1lib:
dependency: transitive
description:
name: asn1lib
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.5"
async:
dependency: transitive
description:
......@@ -15,6 +36,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.2"
basic_utils:
dependency: transitive
description:
name: basic_utils
url: "https://pub.dartlang.org"
source: hosted
version: "2.6.2"
boolean_selector:
dependency: transitive
description:
......@@ -57,6 +85,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
country_pickers:
dependency: transitive
description:
name: country_pickers
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.5"
cupertino_icons:
dependency: "direct main"
description:
......@@ -64,13 +106,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
date_range_picker:
dependency: transitive
description:
name: date_range_picker
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.6"
datetime_picker_formfield:
dependency: transitive
description:
name: datetime_picker_formfield
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
equatable:
dependency: transitive
description:
name: equatable
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.2.5"
fake_async:
dependency: transitive
description:
......@@ -90,25 +146,79 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_chips_input:
dependency: transitive
description:
name: flutter_chips_input
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.4"
flutter_colorpicker:
dependency: transitive
description:
name: flutter_colorpicker
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.4"
flutter_form_builder:
dependency: "direct main"
description:
name: flutter_form_builder
url: "https://pub.dartlang.org"
source: hosted
version: "3.13.5"
flutter_keyboard_visibility:
dependency: transitive
description:
name: flutter_keyboard_visibility
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.2"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.9"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
url: "https://pub.dartlang.org"
source: hosted
version: "0.18.0"
version: "0.18.1"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
flutter_touch_spin:
dependency: transitive
description:
name: flutter_touch_spin
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
flutter_typeahead:
dependency: transitive
description:
name: flutter_typeahead
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.8"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
http:
dependency: "direct main"
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.1"
version: "0.12.2"
http_parser:
dependency: transitive
description:
......@@ -116,6 +226,34 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.4"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.14"
image_picker:
dependency: "direct main"
description:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.7+7"
image_picker_for_web:
dependency: transitive
description:
name: image_picker_for_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0+2"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
intl:
dependency: "direct main"
description:
......@@ -130,6 +268,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.2"
json_annotation:
dependency: transitive
description:
name: json_annotation
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
logging:
dependency: transitive
description:
name: logging
url: "https://pub.dartlang.org"
source: hosted
version: "0.11.4"
matcher:
dependency: transitive
description:
......@@ -157,7 +316,7 @@ packages:
name: path_drawing
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
version: "0.4.1+1"
path_parsing:
dependency: transitive
description:
......@@ -179,6 +338,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.4"
phone_number:
dependency: transitive
description:
name: phone_number
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.2+4"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
pointycastle:
dependency: transitive
description:
name: pointycastle
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
quiver:
dependency: "direct main"
description:
......@@ -186,6 +366,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
random_string:
dependency: transitive
description:
name: random_string
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
rating_bar:
dependency: transitive
description:
name: rating_bar
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
signature:
dependency: transitive
description:
name: signature
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.0"
sky_engine:
dependency: transitive
description: flutter
......@@ -240,6 +441,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
validators:
dependency: transitive
description:
name: validators
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
vector_math:
dependency: transitive
description:
......@@ -247,6 +455,34 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
video_player:
dependency: "direct main"
description:
name: video_player
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.12+2"
video_player_platform_interface:
dependency: transitive
description:
name: video_player_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
video_player_web:
dependency: transitive
description:
name: video_player_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3+2"
vin_decoder:
dependency: transitive
description:
name: vin_decoder
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
xml:
dependency: transitive
description:
......@@ -256,4 +492,4 @@ packages:
version: "4.2.0"
sdks:
dart: ">=2.9.0-14.0.dev <3.0.0"
flutter: ">=1.18.0-6.0.pre <2.0.0"
flutter: ">=1.20.0 <2.0.0"
......@@ -17,6 +17,9 @@ environment:
sdk: ">=2.6.0 <3.0.0"
dependencies:
image_picker: ^0.6.7+7
video_player: ^0.10.12+2
flutter_form_builder: ^3.13.5
flutter:
sdk: flutter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment