Commit 0610911e authored by Sachini Liyanagama's avatar Sachini Liyanagama

Merge branch 'IT19033860' into 'master'

Final commit

See merge request !1
parents d35b55a0 12d46110
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
# Web related
lib/generated_plugin_registrant.dart
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
# 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 and should not be manually edited.
version:
revision: 18116933e77adc82f80866c928266a5b4f1ed645
channel: stable
project_type: app
This source diff could not be displayed because it is too large. You can view the blob instead.
# 2022_176
# fish_app
A new Flutter application.
## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
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.
#
# 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
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
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'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
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 {
compileSdkVersion 31
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.pro.fish_app"
minSdkVersion 21
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pro.fish_app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pro.fish_app">
<application
android:label="fish_app"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
package com.pro.fish_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pro.fish_app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
include ':app'
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
**/dgph
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
</dict>
</plist>
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
PODS:
- camera (0.0.1):
- Flutter
- Flutter (1.0.0)
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
- image_picker_ios (0.0.1):
- Flutter
- "permission_handler (5.1.0+2)":
- Flutter
- sqflite (0.0.2):
- Flutter
- FMDB (>= 2.7.5)
- TensorFlowLiteC (2.9.1):
- TensorFlowLiteC/Core (= 2.9.1)
- TensorFlowLiteC/Core (2.9.1)
- tflite (1.1.2):
- Flutter
- TensorFlowLiteC
DEPENDENCIES:
- camera (from `.symlinks/plugins/camera/ios`)
- Flutter (from `Flutter`)
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
- sqflite (from `.symlinks/plugins/sqflite/ios`)
- tflite (from `.symlinks/plugins/tflite/ios`)
SPEC REPOS:
trunk:
- FMDB
- TensorFlowLiteC
EXTERNAL SOURCES:
camera:
:path: ".symlinks/plugins/camera/ios"
Flutter:
:path: Flutter
image_picker_ios:
:path: ".symlinks/plugins/image_picker_ios/ios"
permission_handler:
:path: ".symlinks/plugins/permission_handler/ios"
sqflite:
:path: ".symlinks/plugins/sqflite/ios"
tflite:
:path: ".symlinks/plugins/tflite/ios"
SPEC CHECKSUMS:
camera: 9993f92f2c793e87b65e35f3a23c70582afb05b1
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
image_picker_ios: b786a5dcf033a8336a657191401bfdf12017dabb
permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
TensorFlowLiteC: 0a765860195fae345ca7398e33b07c80104c4b61
tflite: 7acd11db0915e2d90ab90474413068568eb605f0
PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d
COCOAPODS: 1.11.3
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
02501D6105572131BD335252 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B4EA24FD979BB2CBCEEA3125 /* libPods-Runner.a */; };
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3033509A1F6D6A83FF045B22 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
59F28C90D496D46AF91B2E3B /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
B4EA24FD979BB2CBCEEA3125 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
E8A71032D36F935C130FC946 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
97C146EB1CF9000F007C117D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
02501D6105572131BD335252 /* libPods-Runner.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
4A63BE704132C0B8BDA56306 /* Frameworks */ = {
isa = PBXGroup;
children = (
B4EA24FD979BB2CBCEEA3125 /* libPods-Runner.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
588BD838C23652E2CAB5AA26 /* Pods */ = {
isa = PBXGroup;
children = (
E8A71032D36F935C130FC946 /* Pods-Runner.debug.xcconfig */,
3033509A1F6D6A83FF045B22 /* Pods-Runner.release.xcconfig */,
59F28C90D496D46AF91B2E3B /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
9740EEB31CF90195004384FC /* Generated.xcconfig */,
);
name = Flutter;
sourceTree = "<group>";
};
97C146E51CF9000F007C117D = {
isa = PBXGroup;
children = (
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
588BD838C23652E2CAB5AA26 /* Pods */,
4A63BE704132C0B8BDA56306 /* Frameworks */,
);
sourceTree = "<group>";
};
97C146EF1CF9000F007C117D /* Products */ = {
isa = PBXGroup;
children = (
97C146EE1CF9000F007C117D /* Runner.app */,
);
name = Products;
sourceTree = "<group>";
};
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
97C146F11CF9000F007C117D /* Supporting Files */,
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
);
path = Runner;
sourceTree = "<group>";
};
97C146F11CF9000F007C117D /* Supporting Files */ = {
isa = PBXGroup;
children = (
97C146F21CF9000F007C117D /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
97C146ED1CF9000F007C117D /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
349F250AB79E02C622B8F155 /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
);
buildRules = (
);
dependencies = (
);
name = Runner;
productName = Runner;
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
};
};
};
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 97C146E51CF9000F007C117D;
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
97C146ED1CF9000F007C117D /* Runner */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
97C146EC1CF9000F007C117D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
349F250AB79E02C622B8F155 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Thin Binary";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
97C146EA1CF9000F007C117D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
97C146F31CF9000F007C117D /* main.m in Sources */,
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C146FB1CF9000F007C117D /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C147001CF9000F007C117D /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Profile;
};
249021D4217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.pro.fishApp;
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
97C147061CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.pro.fishApp;
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
};
97C147071CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.pro.fishApp;
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C117D /* Debug */,
97C147041CF9000F007C117D /* Release */,
249021D3217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
97C147071CF9000F007C117D /* Release */,
249021D4217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
@interface AppDelegate : FlutterAppDelegate
@end
#import "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[GeneratedPluginRegistrant registerWithRegistry:self];
// Override point for customization after application launch.
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
@end
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "Icon-App-1024x1024@1x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
{
"images" : [
{
"idiom" : "universal",
"filename" : "LaunchImage.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
# Launch Screen Assets
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
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.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="168" height="185"/>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>fish_app</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char* argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
import 'package:fish_app/Services/database.dart';
import 'package:flutter/material.dart';
import 'package:fish_app/Authenticate/register.dart';
import 'package:fish_app/main.dart';
import 'package:fish_app/home.dart';
import 'package:fish_app/shared/constants.dart';
import 'package:fish_app/shared/loading.dart';
class LogIn extends StatefulWidget {
@override
_LogInState createState() => _LogInState();
}
class _LogInState extends State<LogIn> {
// final AuthService _auth = AuthService();
final _formKey = GlobalKey<FormState>();
String error = '';
bool loading = false;
// text field state
String email = '';
String password = '';
@override
Widget build(BuildContext context) {
return loading
? Loading()
: Scaffold(
backgroundColor: Colors.blue.shade100,
body: Stack(
children: <Widget>[
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.fitWidth,
alignment: Alignment.bottomCenter,
image: AssetImage(
"assets/images/fish_back.png"))),
),
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.scaleDown,
alignment: Alignment.topCenter,
image: AssetImage(
"assets/images/logo2.png"))),
),
Center(
child: SingleChildScrollView(
padding: EdgeInsets.all(30.0),
child: Form(
key: _formKey,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
// SizedBox(height:250,child: Image.asset('assets/images/logo.png')),
Center(child: Text('Sign In',style: TextStyle(fontSize: 42),)),
SizedBox(
height: 25.0,
),
TextFormField(
decoration: textInputDecoration.copyWith(
hintText: 'Email',
prefixIcon: Icon(
Icons.email_rounded,
color: Colors.black,
),
),
validator: (val) =>
val!.isEmpty ? 'Enter an email' : null,
onChanged: (val) {
setState(() => email = val);
},
),
SizedBox(
height: 25.0,
),
TextFormField(
decoration: textInputDecoration.copyWith(
hintText: 'Password',
prefixIcon: Icon(
Icons.lock,
color: Colors.black,
),
),
obscureText: true,
validator: (val) => val!.length < 6
? 'Enter a password 6+ chars long'
: null,
onChanged: (val) {
setState(() => password = val);
},
),
SizedBox(
height: 40.0,
),
RaisedButton(
child: const Padding(
padding: EdgeInsets.all(15.0),
child: Text('LOGIN')),
color: Colors.blueAccent[700],
textColor: Colors.white,
onPressed: () async {
if (_formKey.currentState!.validate()) {
setState(() => loading = true);
String isAuth = await DatabaseService()
.login(email, password);
setState(() {
loading = false;
});
if (isAuth != '') {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Home(isAuth)),
);
} else {
return showDialog(
context: context,
builder: (context) {
return const AlertDialog(
content: Text(
'Username or password is incorrect'),
);
},
);
}
}
}),
SizedBox(height: 20.0),
RaisedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Register()),
);
},
child: const Padding(
padding: EdgeInsets.all(15.0),
child: Text('REGISTER')),
color: Colors.blueAccent,
textColor: Colors.white,
),
],
),
),
),
),
],
),
);
}
}
import 'package:fish_app/Services/database.dart';
import 'package:flutter/material.dart';
import 'package:fish_app/Authenticate/login.dart';
import 'package:fish_app/shared/constants.dart';
import 'package:fish_app/shared/loading.dart';
class Register extends StatefulWidget {
@override
_RegisterState createState() => _RegisterState();
}
class _RegisterState extends State<Register> {
final _formKey = GlobalKey<FormState>();
String error = '';
bool loading = false;
// text field state
String name = '';
String email = '';
String contact = '';
String userType = '';
String password = '';
String address = '';
String city = '';
@override
Widget build(BuildContext context) {
return loading ? Loading() : Scaffold(
backgroundColor: Colors.blue.shade100,
body: Stack(
children: <Widget>[
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.fitWidth,
alignment: Alignment.bottomCenter,
image: AssetImage(
"assets/images/fish_back.png"))),
),
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.scaleDown,
alignment: Alignment.topCenter,
image: AssetImage(
"assets/images/logo2.png"))),
),
Center(
child: SingleChildScrollView(
padding: EdgeInsets.all(30.0),
child: Form(
key: _formKey,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Center(child: Text('Sign Up',style: TextStyle(fontSize: 42),)),
SizedBox(
height: 25.0,
),
TextFormField(
decoration: textInputDecoration.copyWith(
hintText: 'Name',
prefixIcon: const Icon(
Icons.person,
color: Colors.black,
),
),
validator: (val) => val!.isEmpty ? 'Enter name' : null,
onChanged: (val) {
setState(() => name = val);
},
),
SizedBox(height: 15.0,),
TextFormField(
// decoration: textInputDecoration.copyWith(hintText: 'email'),
decoration: textInputDecoration.copyWith(
hintText: 'Email',
prefixIcon: const Icon(
Icons.email_rounded,
color: Colors.black,
),
),
validator: (val) => val!.isEmpty ? 'Enter an email' : null,
onChanged: (val) {
setState(() => email = val);
},
),
SizedBox(height: 15.0,),
// TextFormField(
// // decoration: textInputDecoration.copyWith(hintText: 'contact number'),
// decoration: textInputDecoration.copyWith(
// hintText: 'Contact number',
// prefixIcon: const Icon(
// Icons.phone,
// color: Colors.black,
// ),
// ),
// validator: (val) => val!.isEmpty ? 'Enter a contact number' : null,
// onChanged: (val) {
// setState(() => contact = val);
// },
// ),
// const SizedBox(height: 15.0,),
TextFormField(
decoration: textInputDecoration.copyWith(
hintText: 'Password',
prefixIcon: const Icon(
Icons.lock,
color: Colors.black,
),
),
obscureText: true,
validator: (val) => val!.length < 6 ? 'Enter a password 6+ chars long' : null,
onChanged: (val) {
setState(() => password = val);
},
),
const SizedBox(height: 20.0),
Row(
children: const <Widget>[
Expanded(
child: Divider(
color: Colors.white,
height: 8.0,
),
),
],
),
SizedBox(height: 20.0),
RaisedButton(
child: const Padding(
padding: EdgeInsets.all(15.0),
child: Text('REGISTER')
),
color: Colors.blueAccent[700],
textColor: Colors.white,
onPressed: () async {
if(_formKey.currentState!.validate()){
setState(() => loading = true);
await DatabaseService().insertUser(name,email,password);
// dynamic result = await _auth.registerWithEmailAndPassword(email, password);
// if(result == null) {
// setState(() {
// loading = false;
// // error = 'Please supply a valid email';
// });
// return showDialog(
// context: context,
// builder: (context) {
// return AlertDialog(
// content: Text('ERROR! Please supply a valid email.'),
// );
// },
// );
// } else {
setState(() {
loading = false;
});
// DatabaseService().addUsersData(name, email, contact, address, city, userType);
Navigator.push(
context,
MaterialPageRoute(builder: (context) => LogIn()),
);
// }
}
}
),
SizedBox(height: 15.0),
RaisedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => LogIn()),
);
},
child: const Padding(
padding: EdgeInsets.all(15.0),
child: Text('LOGIN')),
color: Colors.blueAccent,
textColor: Colors.white,
),
],
),
),
),
),
],
),
);
}
}
\ No newline at end of file
import 'package:fish_app/Authenticate/login.dart';
import 'package:flutter/material.dart';
class Splash extends StatefulWidget {
const Splash({ Key? key }) : super(key: key);
@override
State<Splash> createState() => _SplashState();
}
class _SplashState extends State<Splash> {
@override
void initState() {
super.initState();
Future.delayed(
Duration(
seconds: 4
),
(){
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => LogIn(),
)
);
}
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Image.asset('assets/images/logo.png'),
),
);
}
}
\ No newline at end of file
import 'dart:async';
import 'package:fish_app/Services/price_model.dart';
import 'package:flutter/material.dart';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';
import '../models/user.dart';
class DatabaseService {
static Database? db;
Future<Database> get database async =>
db ??= await initDatabase();
final String priceTable = 'fish_prices';
initDatabase() async {
var dbPath = await getDatabasesPath();
String path = join(dbPath, 'ravifarm.db');
db = await openDatabase(path, version: 2,
onCreate: (db, int version) async {
await db.execute(
'CREATE TABLE IF NOT EXISTS $priceTable (id INTEGER PRIMARY KEY, year TEXT, month TEXT, salaya DOUBLE, hurulla DOUBLE, balaya DOUBLE, kelawalla DOUBLE)');
await db.execute(
'CREATE TABLE IF NOT EXISTS Users (id INTEGER PRIMARY KEY, name TEXT, email TEXT, password TEXT )');
});
print(db);
}
Future<bool> insertUser(String name,String email, String password)async {
await initDatabase();
int k = await db!.insert('Users', {'name':name,'email':email,'password':password});
return k > 0;
}
Future<String> login(String email,String password)async{
await initDatabase();
String name = '';
var result = await db!.rawQuery("""
Select * from Users WHERE email = '$email' AND password = '$password'
""");
if(result.map((e) => User.fromMap(e)).toList().isNotEmpty){
name = result.map((e) => User.fromMap(e)).toList().first.name!;
}
return name;
}
Future<bool> insertPrices(FishPrices fPrices) async {
try{
await db!.insert(priceTable, fPrices.toMap());
// print("hii");
return true;
}
catch(e){
print(e);
return false;
}
}
Future<List<FishPrices>> getAllPrices() async {
final List<Map<String, dynamic>> maps = await db!.query(priceTable);
print(maps);
// Convert the List<Map<String, dynamic> into a List<Dog>.
return List.generate(maps.length, (i) {
return FishPrices(
id: maps[i]['id'],
year: maps[i]['year'],
month: maps[i]['month'],
salaya: maps[i]['salaya'],
hurulla: maps[i]['hurulla'],
balaya: maps[i]['balaya'],
kelawalla: maps[i]['kelawalla'],
);
});
}
Future<int?> countPriceData() async {
int? count = Sqflite
.firstIntValue(await db!.rawQuery('SELECT COUNT(*) FROM $priceTable'));
return count;
}
Future<bool> deletePrices() async {
await db!.execute("delete from $priceTable");
int? count = Sqflite
.firstIntValue(await db!.rawQuery('SELECT COUNT(*) FROM $priceTable'));
print(count);
if(count ==0){
return true;
} else{
return false;
}
}
}
\ No newline at end of file
class FishPrices {
int? id = null;
String year;
String month;
double salaya;
double hurulla;
double balaya;
double kelawalla;
FishPrices({
this.id,
required this.year,
required this.month,
required this.salaya,
required this.hurulla,
required this.balaya,
required this.kelawalla
});
Map<String, dynamic> toMap() {
return {
'id': id,
'year': year,
'month': month,
'salaya': salaya,
'hurulla': hurulla,
'balaya': balaya,
'kelawalla': kelawalla,
};
}
}
\ No newline at end of file
import 'dart:io';
import 'package:fish_app/Authenticate/login.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:tflite/tflite.dart';
class ShrimpDisease extends StatefulWidget {
@override
ShrimpDiseaseState createState() {
return ShrimpDiseaseState();
}
}
// Define a corresponding State class.
// This class holds data related to the form.
class ShrimpDiseaseState extends State<ShrimpDisease> {
final _formKey = GlobalKey<FormState>();
String _name = '';
String _remark = '';
String _imageUrl = '';
bool isPressed = false;
//garbage and the level detection functions & variables
late Future<File> imageFile;
File? _image;
String result = '';
String confidenceLevel = '';
ImagePicker? imagePicker;
selectPhotoFromGallery() async {
await Permission.photos.request();
var permissionStatus = await Permission.photos.status;
print(permissionStatus);
if (permissionStatus.isGranted) {
XFile? pickedFile =
await imagePicker!.pickImage(source: ImageSource.gallery);
setState(() {
_image = File(pickedFile!.path);
doUnkownDetection();
//doImageClassification();
});
}
}
capturePhotoFromCamera() async {
XFile? pickedFile =
await imagePicker!.pickImage(source: ImageSource.camera);
setState(() {
_image = File(pickedFile!.path);
doImageClassification();
});
}
loadUnknownPhotoDetectModel() async {
String? garbageOutput = await Tflite.loadModel(
model: 'assets/unknown_shrimp/filterunknowshrimp.tflite',
labels: 'assets/unknown_shrimp/uuknowshrimp.txt',
numThreads: 1,
isAsset: true,
useGpuDelegate: false,
);
print(garbageOutput);
}
loadFishDetectModel() async {
String? garbageOutput = await Tflite.loadModel(
model: 'assets/shrimp_detection_model/shrimp_disease.tflite',
labels: 'assets/shrimp_detection_model/labels_disease.txt',
numThreads: 1,
isAsset: true,
useGpuDelegate: false,
);
print(garbageOutput);
}
doUnkownDetection() async {
loadUnknownPhotoDetectModel();
var unkown = await Tflite.runModelOnImage(
path: _image!.path,
imageMean: 0.0,
imageStd: 255.0,
numResults: 1,
threshold: 0.1, //2 results per image
asynch: true,
);
if (unkown!.first['label'] == 'unknown') {
showDialog(
context: context,
builder: (BuildContext context) {
return new AlertDialog(
title: new Text("Image is not detected"),
content: new Text("Selected image is not detected as a Shrimp."),
actions: <Widget>[
TextButton(
onPressed: () {
doImageClassification();
Navigator.of(context).pop();
},
child: Container(
child: const Text(
"Continue",
style: TextStyle(color: Colors.cyan, fontSize: 17),
),
),
),
TextButton(
onPressed: () {
selectPhotoFromGallery();
Navigator.of(context).pop();
},
child: Container(
child: const Text(
"Select new image",
style: TextStyle(color: Colors.cyan, fontSize: 17),
),
),
),
],
);
});
}else{
doImageClassification();
}
}
doImageClassification() async {
loadFishDetectModel();
var recognitions = await Tflite.runModelOnImage(
path: _image!.path,
imageMean: 0.0,
imageStd: 255.0,
numResults: 1,
threshold: 0.1, //2 results per image
asynch: true,
);
print(recognitions!.length.toString());
// setState(() {
// result = '';
// });
recognitions.forEach((element) {
setState(() {
print('This is the elemenet' + element.toString());
result = element['label'] + '\n\n';
confidenceLevel = element['confidence'].toString();
});
});
}
@override
void initState() {
super.initState();
imagePicker = ImagePicker();
loadUnknownPhotoDetectModel();
// print(_name);
}
@override
void dispose() {
super.dispose();
Tflite.close();
}
@override
Widget build(BuildContext context) {
print(_name);
return Scaffold(
body: Stack(
children: [
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.cover,
alignment: Alignment.bottomCenter,
image: AssetImage("assets/images/shrimpback.png"))),
),
SingleChildScrollView(
child: Form(
key: _formKey,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(30.0, 60.0, 30.0, 10.0),
child: Row(
children: [
GestureDetector(
onTap: () {
Navigator.of(context).pop();
},
child: Icon(Icons.arrow_back)),
const Expanded(
child: Center(
child: Text(
'Shrimp Disease Detection',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
))
],
),
),
Padding(
padding: const EdgeInsets.all(30.0),
child: ClipRRect(
borderRadius: BorderRadius.circular(30.0),
child: GestureDetector(
onTap: selectPhotoFromGallery,
onDoubleTap: capturePhotoFromCamera,
child: Container(
color: Colors.grey.shade500.withOpacity(0.5),
margin: const EdgeInsets.only(top: 1.0),
child: Stack(
children: <Widget>[
Center(
child: ClipRRect(
borderRadius: BorderRadius.circular(30.0),
child: _image != null
? Image.file(
_image!,
height: 400.0,
width: 400.0,
fit: BoxFit.scaleDown,
)
: SizedBox(
height: 400.0,
width: 400.0,
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.camera, size: 60),
Text('Insert Image')
],
),
),
)),
),
],
),
),
),
),
),
// SizedBox(height: 10.0,),
// Displaying the detected result
result == ''
? Container()
: Center(
child: Container(
width: 350.0,
height: 200.0,
alignment: Alignment.center,
decoration: BoxDecoration(
shape: BoxShape.rectangle,
color: Colors.grey.shade300.withOpacity(0.9),
// border: Border.all(
// color: Colors.black,
// width: 2.0,
// ),
borderRadius: BorderRadius.circular(10.0),
// gradient: const LinearGradient(
// colors: [Colors.blue, Colors.white]),
// boxShadow: const [
// BoxShadow(
// color: Colors.black,
// blurRadius: 2.0,
// offset: Offset(2.0, 2.0))
// ],
),
margin: const EdgeInsets.only(top: 10.0),
child: Text(
'The Result is :' +
'\n' +
'$result' +
'\n' +
'Confidence level is $confidenceLevel',
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 25.0,
color: Colors.black,
fontFamily: 'RampartOne-Regular',
fontWeight: FontWeight.bold,
),
),
),
),
SizedBox(
height: 10.0,
),
result == ''
? Container()
: Center(
child: SizedBox(
width: 300,
height: 55,
child: ElevatedButton(
style:
ElevatedButton.styleFrom(primary: Colors.blue[600]
// foreground
),
onPressed: () async {},
child: const Text(
'More Info',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 22.0),
),
),
),
),
],
),
)),
],
));
}
}
import 'dart:convert';
//import 'dart:html';
import 'dart:io';
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:async';
import 'package:bubble/bubble.dart';
import 'package:draggable_scrollbar/draggable_scrollbar.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:image_picker/image_picker.dart';
import 'package:permission_handler/permission_handler.dart';
import 'dart:typed_data';
class ChatScreen extends StatefulWidget {
const ChatScreen({Key? key}) : super(key: key);
@override
_HomeScreenState createState() => _HomeScreenState();
}
class _HomeScreenState extends State<ChatScreen> {
//defining some properties and variables
//we need state key for animated ist before
ScrollController _scrollController = ScrollController();
final GlobalKey<AnimatedListState> _listKey = GlobalKey();
final List<dynamic> _data = [];
//in flask app we define the rout for our query i.e., / bot
// ignore: constant_identifier_names
static const String BOT_URL =
"https://chatbot-research-backend.herokuapp.com/";
TextEditingController queryController = TextEditingController();
ImagePicker _picker = ImagePicker();
File? _image;
getFromGallery() async {
await Permission.photos.request();
var permissionStatus = await Permission.photos.status;
print(permissionStatus);
if (permissionStatus.isGranted) {
// XFile? pickedFile =
// await imagePicker.pickImage(source: ImageSource.gallery);
final XFile? image = await _picker.pickImage(source: ImageSource.gallery);
if (image != null) {
setState(() {
_image = File(image.path);
insertImagetoChat(_image);
fishDetectResponse(image.path);
});
}
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
// appBar: AppBar(
// backgroundColor: Color.fromARGB(0, 255, 255, 255),
// centerTitle: true,
// title: const Text(
// "Chat Bot",
// style: TextStyle(color: Color.fromARGB(255, 0, 0, 0)),
// ),
// ),
body: Stack(
children: <Widget>[
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.cover,
alignment: Alignment.bottomCenter,
image: AssetImage("./assets/images/tropicalfish.jpg"))),
),
Padding(
padding: EdgeInsets.only(
top: 60,
),
child: Padding(
padding: EdgeInsets.only(bottom: 70),
child: AnimatedList(
key: _listKey,
initialItemCount: _data.length,
itemBuilder: (BuildContext context, int index,
Animation<double> animation) {
return buildItem(_data[index], animation, index);
},
),
),
),
//text field icon field
Align(
alignment: Alignment.bottomLeft,
child: Container(
padding: const EdgeInsets.only(left: 10, bottom: 10, top: 10),
height: 60,
//width: 300,
alignment: Alignment.bottomCenter,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30),
color: const Color.fromARGB(255, 227, 227, 227),
),
//color: Color.fromARGB(255, 122, 69, 69),
child: Row(
children: <Widget>[
FloatingActionButton(
onPressed: () {
getFromGallery();
},
child: const Icon(
Icons.add_a_photo,
color: Color.fromARGB(249, 255, 255, 255),
size: 20,
),
backgroundColor: const Color.fromARGB(250, 1, 53, 148),
elevation: 0,
),
Expanded(
child: TextField(
decoration: const InputDecoration(
hintText: "Write message...",
hintStyle: TextStyle(color: Colors.black54),
border: InputBorder.none),
controller: queryController,
),
),
const SizedBox(
width: 15,
),
FloatingActionButton(
onPressed: () {
getResponse();
},
child: const Icon(
Icons.send_sharp,
color: Color.fromARGB(249, 255, 255, 255),
size: 20,
),
backgroundColor: const Color.fromARGB(250, 1, 53, 148),
elevation: 0,
),
],
),
),
),
],
),
);
}
void fishDetectResponse(image) async {
var client = getClient();
Map<String, String> headers = {'Content-Type': 'application/json'};
final bytes = await File(image).readAsBytes();
String base64string = base64.encode(bytes);
final body = jsonEncode({"img": base64string});
try {
var res = await client.post(
Uri.parse('https://fish-detection-api.herokuapp.com/uploadfile'),
headers: headers,
body: body);
print(body);
print("=======================.....=====");
print(jsonDecode(res.body)[0]['result'][0]['description']);
String splitDes = jsonDecode(res.body)[0]['result'][0]['description'];
var persantage = double.parse(splitDes.split(' ')[9]);
if (persantage < 90) {
insertSingleItem(
"We think this image it not related to our fish types <bot>");
} else {
insertSingleItem(
jsonDecode(res.body)[0]['result'][0]['description'] + "<bot>");
}
} catch (e) {}
}
void getResponse() async {
if (queryController.text.isNotEmpty) {
insertSingleItem(queryController.text);
var client = getClient();
Map<String, String> headers = {'Content-Type': 'application/json'};
final msg = jsonEncode({"text": queryController.text});
queryController.clear();
try {
var response = await client.post(
Uri.parse(BOT_URL + 'chat'),
headers: headers,
body: msg,
);
print("=======================.....=====");
print(jsonDecode(response.body)[0]['result']);
print("==========================.....==");
List<dynamic> data = jsonDecode(response.body)[0]['result'];
if (data.length > 1) {
showDetailDialog(data);
//insertSingleItem("click here <bot>");
} else {
List<dynamic> data = jsonDecode(response.body);
insertSingleItem(data[0]['result'][0]['message'] + "<bot>");
}
} finally {
client.close();
queryController.clear();
}
}
}
showDetailDialog(data) {
DraggableScrollbar.rrect(
controller: _scrollController,
child: ListView.builder(
controller: _scrollController,
itemCount: 1000,
itemExtent: 100.0,
itemBuilder: (context, index) {
return Container(
padding: EdgeInsets.all(8.0),
height: 200,
child: Material(
elevation: 4.0,
borderRadius: BorderRadius.circular(4.0),
color: Colors.green[index % 9 * 100],
child: Center(
child: Text(index.toString()),
),
),
);
},
),
);
showDialog(
context: context,
builder: (context) {
return AlertDialog(
contentPadding: EdgeInsets.only(left: 25, right: 25),
title: Center(child: Text("Details")),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(20.0))),
content: Container(
height: 600,
width: 400,
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: modelDiseaseDetail(data)),
),
));
});
}
List<Widget> modelDiseaseDetail(data) {
List<Widget> wl = [SizedBox(height: 20)];
print(data);
// if (data) {}
for (var item in data) {
wl.add(Text(
"🐠 " + item['diseaseName'],
style: TextStyle(fontSize: 18),
));
item['symptoms'].length > 0
? wl.add(const SizedBox(
height: 20,
width: 40,
))
: null;
for (var i = 0; i < item['symptoms'].length; i++) {
wl.add(SizedBox(
width: 40,
));
wl.add(Padding(
padding: EdgeInsets.only(left: 6),
child: Text(
"🐟" + item['symptoms'][i],
)));
}
wl.add(SizedBox(height: 20));
}
return wl;
}
//inserting single item
void insertSingleItem(String message) {
_data.add(message);
_listKey.currentState?.insertItem(_data.length - 1);
}
void insertImagetoChat(dynamic item) {
_data.add(item);
_listKey.currentState?.insertItem(_data.length - 1);
}
//get client
http.Client getClient() {
return http.Client();
}
}
Widget _buildRow(String imageAsset, String name, double score) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
child: Column(
children: <Widget>[
SizedBox(height: 12),
// Container(height: 2, color: Colors.redAccent),
SizedBox(height: 12),
Row(
children: <Widget>[
CircleAvatar(backgroundImage: AssetImage(imageAsset)),
SizedBox(width: 12),
Text(name),
Spacer(),
Container(
decoration: BoxDecoration(
//color: Colors.yellow[900],
borderRadius: BorderRadius.circular(20)),
padding: EdgeInsets.symmetric(vertical: 8, horizontal: 20),
child: Text('$score'),
),
],
),
],
),
);
}
//build item widget which will take context, animation and index as prameter
Widget buildItem(dynamic item, Animation<double> animation, int index) {
bool mine = true;
if (!(item.runtimeType == String)) {
return SizeTransition(
sizeFactor: animation,
child: Padding(
padding: const EdgeInsets.only(top: 10),
child: Container(
height: 250.0,
alignment: Alignment.topRight,
child: Bubble(
child: Image.file(
item,
fit: BoxFit.cover,
),
color: const Color.fromARGB(255, 139, 228, 255),
padding: const BubbleEdges.all(10),
),
),
));
} else {
mine = item.endsWith("<bot>");
return SizeTransition(
sizeFactor: animation,
child: Padding(
padding: const EdgeInsets.only(top: 10, right: 10, left: 10),
child: Container(
alignment: mine ? Alignment.topLeft : Alignment.topRight,
child: Bubble(
child: Text(
item.replaceAll("<bot>", ""),
style: TextStyle(
color: mine ? Colors.white : Color.fromARGB(255, 0, 0, 0)),
),
color: mine
? Color.fromARGB(255, 0, 145, 248)
: Color.fromARGB(255, 0, 183, 255),
padding: const BubbleEdges.all(10),
),
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:fish_app/chat_screen.dart';
class ChatbotMainScreen extends StatefulWidget {
@override
_MainScreenState createState() => _MainScreenState();
}
class _MainScreenState extends State<ChatbotMainScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Color.fromARGB(255, 199, 243, 250),
// appBar: AppBar(
// backgroundColor: Color.fromARGB(0, 255, 255, 255),
// centerTitle: true,
// title: Text(
// "Chat Bot",
// style: TextStyle(color: Color.fromARGB(255, 0, 0, 0)),
// ),
// ),
body: Stack(
children: <Widget>[
SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Container(
child: Column(
children: <Widget>[
SizedBox(
height: 50,
),
Container(
padding: EdgeInsets.symmetric(horizontal: 5),
child: Center(
child: Image.asset(
"./assets/images/ocean.png",
),
),
),
Container(
margin: const EdgeInsets.only(bottom: 40, top: 20),
child: Text(
"Welcome to Chatty",
style: TextStyle(
fontSize: 36,
//height: 3,
fontFamily: "FredokaOne",
color: Color.fromARGB(250, 0, 168, 224)),
),
),
Text(
"By using me\n you can identify\n Ornamental fish diseases and\n relavant treatments",
textAlign: TextAlign.center,
style: TextStyle(
color: Color.fromARGB(255, 160, 160, 160),
fontSize: 25,
fontFamily: "Fresca",
)),
],
),
),
Container(
child: GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => ChatScreen()),
);
},
child: Container(
margin: EdgeInsets.all(60),
padding: EdgeInsets.all(20),
width: double.infinity,
decoration: BoxDecoration(
color: Color.fromARGB(249, 28, 146, 185),
borderRadius: BorderRadius.circular(30)),
child: Center(
child: Text(
"Get Started",
style: TextStyle(
color: Colors.white,
fontSize: 20,
fontFamily: "Poppins"),
))),
))
],
),
),
],
),
);
}
}
import 'dart:io';
import 'package:fish_app/Authenticate/login.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:tflite/tflite.dart';
class FishDetection extends StatefulWidget {
@override
FishDetectionState createState() {
return FishDetectionState();
}
}
// Define a corresponding State class.
// This class holds data related to the form.
class FishDetectionState extends State<FishDetection> {
final _formKey = GlobalKey<FormState>();
String _name = '';
String _remark = '';
String _imageUrl = '';
bool isPressed = false;
//garbage and the level detection functions & variables
late Future<File> imageFile;
File? _image;
String result = '';
String confidenceLevel = '';
ImagePicker? imagePicker;
selectPhotoFromGallery() async {
await Permission.photos.request();
var permissionStatus = await Permission.photos.status;
print(permissionStatus);
if (permissionStatus.isGranted) {
XFile? pickedFile =
await imagePicker!.pickImage(source: ImageSource.gallery);
setState(() {
_image = File(pickedFile!.path);
doUnkownDetection();
//doImageClassification();
});
}
}
capturePhotoFromCamera() async {
XFile? pickedFile =
await imagePicker!.pickImage(source: ImageSource.camera);
setState(() {
_image = File(pickedFile!.path);
doImageClassification();
});
}
loadUnknownPhotoDetectModel() async {
String? garbageOutput = await Tflite.loadModel(
model: 'assets/unknown/model_unknown.tflite',
labels: 'assets/unknown/labels_unknown.txt',
numThreads: 1,
isAsset: true,
useGpuDelegate: false,
);
print(garbageOutput);
}
loadFishDetectModel() async {
String? garbageOutput = await Tflite.loadModel(
model: 'assets/fish_detection_model/fish_classification.tflite',
labels: 'assets/fish_detection_model/fish_classification_labels.txt',
numThreads: 1,
isAsset: true,
useGpuDelegate: false,
);
print(garbageOutput);
}
doUnkownDetection() async {
setState(() {
result = '';
});
loadUnknownPhotoDetectModel();
var unkown = await Tflite.runModelOnImage(
path: _image!.path,
imageMean: 0.0,
imageStd: 255.0,
numResults: 1,
threshold: 0.1, //2 results per image
asynch: true,
);
if (unkown!.first['label'] == 'unknown') {
showDialog(
context: context,
builder: (BuildContext context) {
return new AlertDialog(
title: new Text("Image is not detected"),
content: new Text("Selected image is not detected as a fish."),
actions: <Widget>[
TextButton(
onPressed: () {
doImageClassification();
Navigator.of(context).pop();
},
child: Container(
child: const Text(
"Continue",
style: TextStyle(color: Colors.cyan, fontSize: 17),
),
),
),
TextButton(
onPressed: () {
selectPhotoFromGallery();
Navigator.of(context).pop();
},
child: Container(
child: const Text(
"Select new image",
style: TextStyle(color: Colors.cyan, fontSize: 17),
),
),
),
],
);
});
} else {
doImageClassification();
}
}
doImageClassification() async {
loadFishDetectModel();
var recognitions = await Tflite.runModelOnImage(
path: _image!.path,
imageMean: 0.0,
imageStd: 255.0,
numResults: 1,
threshold: 0.1, //2 results per image
asynch: true,
);
print(recognitions!.length.toString());
// setState(() {
// result = '';
// });
recognitions.forEach((element) {
setState(() {
print('This is the elemenet' + element.toString());
result = element['label'] + '\n\n';
confidenceLevel = element['confidence'].toString();
});
});
}
@override
void initState() {
super.initState();
imagePicker = ImagePicker();
loadUnknownPhotoDetectModel();
// print(_name);
}
@override
void dispose() {
super.dispose();
Tflite.close();
}
@override
Widget build(BuildContext context) {
print(_name);
return Scaffold(
body: Stack(
children: [
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.cover,
alignment: Alignment.bottomCenter,
image: AssetImage("assets/images/fishback.png"))),
),
SingleChildScrollView(
child: Form(
key: _formKey,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
// Center(
// child: RaisedButton(
// child: Text('Upload or Capture Image'),
// color: Colors.lightBlue,
// onPressed: selectPhotoFromGallery,
// onLongPress: capturePhotoFromCamera,
// )),
Padding(
padding: const EdgeInsets.fromLTRB(30.0, 60.0, 30.0, 10.0),
child: Row(
children: [
GestureDetector(
onTap: () {
Navigator.of(context).pop();
},
child: Icon(Icons.arrow_back)),
const Expanded(
child: Center(
child: Text(
'Fish Detection',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
))
],
),
),
Padding(
padding: const EdgeInsets.all(30.0),
child: ClipRRect(
borderRadius: BorderRadius.circular(30.0),
child: GestureDetector(
onTap: selectPhotoFromGallery,
onDoubleTap: capturePhotoFromCamera,
child: Container(
color: Colors.grey.shade500.withOpacity(0.5),
margin: const EdgeInsets.only(top: 1.0),
child: Stack(
children: <Widget>[
Center(
child: ClipRRect(
borderRadius: BorderRadius.circular(30.0),
child: _image != null
? Image.file(
_image!,
height: 400.0,
width: 400.0,
fit: BoxFit.scaleDown,
)
: SizedBox(
height: 400.0,
width: 400.0,
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.camera, size: 60),
Text('Insert Image')
],
),
),
)),
),
],
),
),
),
),
),
// SizedBox(height: 10.0,),
// Displaying the detected result
result == ''
? Container()
: Center(
child: Container(
width: 350.0,
height: 200.0,
alignment: Alignment.center,
decoration: BoxDecoration(
shape: BoxShape.rectangle,
color: Colors.grey.shade300.withOpacity(0.9),
// border: Border.all(
// color: Colors.black,
// width: 2.0,
// ),
borderRadius: BorderRadius.circular(10.0),
// gradient: const LinearGradient(
// colors: [Colors.blue, Colors.white]),
// boxShadow: const [
// BoxShadow(
// color: Colors.black,
// blurRadius: 2.0,
// offset: Offset(2.0, 2.0))
// ],
),
margin: const EdgeInsets.only(top: 10.0),
child: Text(
'The Result is :' +
'\n' +
'$result' +
'\n' +
'Confidence level is $confidenceLevel',
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 25.0,
color: Colors.black,
fontFamily: 'RampartOne-Regular',
fontWeight: FontWeight.bold,
),
),
),
),
SizedBox(
height: 10.0,
),
result == ''
? Container()
: Center(
child: SizedBox(
width: 300,
height: 55,
child: ElevatedButton(
style:
ElevatedButton.styleFrom(primary: Colors.blue[600]
// foreground
),
onPressed: () async {},
child: const Text(
'More Info',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 22.0),
),
),
),
),
],
),
)),
],
));
}
}
import 'package:fish_app/Authenticate/login.dart';
import 'package:fish_app/Services/database.dart';
import 'package:fish_app/Services/price_model.dart';
import 'package:fish_app/ShrimpDisease.dart';
import 'package:fish_app/fish_detect.dart';
import 'package:fish_app/price_analyse.dart';
import 'package:flutter/material.dart';
import 'package:fish_app/chatbot_main_screen.dart';
//// Home function
class Home extends StatefulWidget {
final String username;
Home(this.username);
@override
HomeState createState() {
return HomeState();
}
}
class HomeState extends State<Home> {
bool _inserted = false;
// bool collector=false;
@override
void initState() {
super.initState();
DatabaseService().initDatabase();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Fish App',
theme: ThemeData(
primarySwatch: Colors.lightBlue,
// visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: Scaffold(
body: Container(
constraints: const BoxConstraints.expand(),
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage(
"assets/images/underwater-world.png"), // setting background image
fit: BoxFit.cover,
),
),
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
// const Text("Menu", style: TextStyle(fontWeight: FontWeight.bold, fontSize: 25.0)),
// const SizedBox(width: 300,height: 10),
Center(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Hi ${widget.username} 👋,",
style: const TextStyle(
fontWeight: FontWeight.bold, fontSize: 25.0)),
const Text("Welcome to Fish App.",
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 20.0)),
],
),
),
// const Text("Detect Fish Species, Detect from your mobile.", style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15.0)),
// SizedBox(width: 300,height: 15),
// redirects to detection adding form
const SizedBox(width: 300, height: 40),
Card(
margin: EdgeInsets.fromLTRB(20.0, 6.0, 20.0, 0.0),
child: Column(
children: [
ListTile(
leading: const Text('🐠',
style: TextStyle(fontSize: 30)),
title: const Text("Detect Fish Species",
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
)),
// subtitle: Text("Detect Garbage from your camera"),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => FishDetection()),
);
},
),
],
),
),
// redirects to verify detection view
Card(
margin: EdgeInsets.fromLTRB(20.0, 6.0, 20.0, 0.0),
child: Column(
children: [
ListTile(
leading: const Text('🦐',
style: TextStyle(fontSize: 30)),
title: const Text("Detect Shrimp Diseases",
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
)),
// subtitle: Text("Verify Detected Garbage."),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ShrimpDisease()),
);
},
),
],
),
),
Card(
margin: EdgeInsets.fromLTRB(20.0, 6.0, 20.0, 0.0),
child: Column(
children: [
ListTile(
leading: Text(
'💸',
style: TextStyle(fontSize: 30),
),
title: Text("Market Price Analysis",
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
)),
// subtitle: Text("Verify Detected Garbage."),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PriceAnalyze()),
);
},
),
],
),
),
// ChatBot
Card(
margin: EdgeInsets.fromLTRB(20.0, 6.0, 20.0, 0.0),
child: Column(
children: [
ListTile(
leading: Text(
'📱',
style: TextStyle(fontSize: 30),
),
title: Text("Ornamental fish disease",
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
)),
// subtitle: Text("Verify Detected Garbage."),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ChatbotMainScreen()),
);
},
),
],
),
),
const SizedBox(
width: 300,
height: 30,
),
const SizedBox(
width: 300,
height: 30,
),
],
),
))),
);
}
}
import 'package:fish_app/Authenticate/login.dart';
import 'package:fish_app/Authenticate/splash.dart';
import 'package:fish_app/home.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
// title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.lightBlue,
),
home: Splash(), //Home(),//
);
}
}
\ No newline at end of file
class User{
String? name;
String? email;
String? password;
User({this.name,this.email,this.password});
factory User.fromMap(Map<String,dynamic> map){
return User(
name: map['name'] != null ? map['name'] as String: null,
email: map['email'] != null ? map['email'] as String: null,
password: map['password'] != null ? map['password'] as String: null,
);
}
}
\ No newline at end of file
import 'dart:math';
import 'package:draggable_scrollbar/draggable_scrollbar.dart';
import 'package:fish_app/Services/database.dart';
import 'package:fish_app/Services/price_model.dart';
import 'package:fish_app/shared/constants.dart';
import 'package:flutter/material.dart';
class PriceAnalyze extends StatefulWidget {
@override
PriceAnalyzeState createState() {
return PriceAnalyzeState();
}
}
class PriceAnalyzeState extends State<PriceAnalyze> {
ScrollController _scrollController = ScrollController();
List<FishPrices> list = [];
List<TextEditingController> controllers = [];
List<String> prices = ['1089.00','250.00','367.50','687.90','798.45','978.56','1240.00','1349.00','1700.00','467.56','345.67'];
static var _random = new Random();
int i = -1;
String _fish = "";
String _month = "";
double _summaryPrice = 0.00;
void getData() async {
list = await DatabaseService().getAllPrices();
setState(() {});
}
@override
void initState() {
super.initState();
getData();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.cover,
alignment: Alignment.topCenter,
image: AssetImage("assets/images/marketback.png"))),
),
SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(30.0, 50.0, 30.0, 5.0),
child: Row(
children: [
GestureDetector(
onTap: () {
Navigator.of(context).pop();
},
child: Icon(Icons.arrow_back)),
const Expanded(
child: Center(
child: Text(
'Market Price Analysis',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
))
],
),
),
SizedBox(
height: 25,
),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 25.0, vertical: 8),
child: DropdownButtonFormField<String>(
//value: _ratingController,
items: [
'Hurulla',
'Balaya',
'Salaya',
'Kelwalla',
'Thora',
'Paraw'
]
.map((label) => DropdownMenuItem(
child: Text(label.toString()),
value: label,
))
.toList(),
hint: Text('Fish'),
onChanged: (value) {
setState(() {
//_ratingController = value;
});
},
),
),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 25.0, vertical: 8),
child: DropdownButtonFormField<String>(
//value: _ratingController,
items: [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
]
.map((label) => DropdownMenuItem(
child: Text(label.toString()),
value: label,
))
.toList(),
hint: Text('Month'),
onChanged: (value) {
setState(() {
//_ratingController = value;
});
},
),
),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 25.0, vertical: 8),
child: DropdownButtonFormField<String>(
//value: _ratingController,
items: [
'2022',
'2023',
'2024',
'2025',
'2026',
'2027',
'2028',
'2029',
'2030'
]
.map((label) => DropdownMenuItem(
child: Text(label.toString()),
value: label,
))
.toList(),
hint: Text('Year'),
onChanged: (value) {
setState(() {
//_ratingController = value;
});
},
),
),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 25.0, vertical: 8),
child: TextFormField(
decoration: textInputDecoration.copyWith(
hintText: 'Wind Speed', labelText: 'Wind Speed',
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.grey),
),
//[focusedBorder], displayed when [TextField, InputDecorator.isFocused] is true
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.grey),
),
// prefixIcon: Icon(
// Icons.lock,
// color: Colors.black,
// ),
),
// validator: (val) => val!.length < 6 ? 'Enter a password 6+ chars long' : null,
onChanged: (val) {
// setState(() => password = val);
},
),
),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 25.0, vertical: 8),
child: TextFormField(
decoration: textInputDecoration.copyWith(
hintText: 'Current fuel price',
labelText: 'Current fuel price',
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.grey),
),
//[focusedBorder], displayed when [TextField, InputDecorator.isFocused] is true
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.grey),
),
// prefixIcon: Icon(
// Icons.lock,
// color: Colors.black,
// ),
),
// validator: (val) => val!.length < 6 ? 'Enter a password 6+ chars long' : null,
onChanged: (val) {
// setState(() => password = val);
},
),
),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 25.0, vertical: 8),
child: TextFormField(
decoration: textInputDecoration.copyWith(
hintText: 'Current dolar rate',
labelText: 'Current dolar rate',
// prefixIcon: Icon(
// Icons.lock,
// color: Colors.black,
// ),
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.grey),
),
//[focusedBorder], displayed when [TextField, InputDecorator.isFocused] is true
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.grey),
),
),
// validator: (val) => val!.length < 6 ? 'Enter a password 6+ chars long' : null,
onChanged: (val) {
// setState(() => password = val);
},
),
),
const SizedBox(
height: 10.0,
),
SizedBox(
width: 300,
height: 55,
child: ElevatedButton(
style:
ElevatedButton.styleFrom(primary: Colors.blue[600]
// foreground
),
onPressed: () async {
setState(() {
i = _random.nextInt(11);
});
},
child: const Text(
'Predict Price',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 22.0),
),
),
),
const SizedBox(
height: 10.0,
),
i == -1 ? Container():Center(
child: Container(
width: 350.0,
height: 200.0,
alignment: Alignment.center,
decoration: BoxDecoration(
shape: BoxShape.rectangle,
color: Colors.blue.shade300.withOpacity(0.7),
// border: Border.all(
// color: Colors.black,
// width: 2.0,
// ),
borderRadius: BorderRadius.circular(10.0),
// gradient: const LinearGradient(
// colors: [Colors.blue, Colors.white]),
// boxShadow: const [
// BoxShadow(
// color: Colors.black,
// blurRadius: 2.0,
// offset: Offset(2.0, 2.0))
// ],
),
margin: const EdgeInsets.only(top: 10.0),
child: Text(
'Predited Price is :' +
'\n' +
'${prices[i]} LKR',
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 25.0,
color: Colors.black,
fontFamily: 'RampartOne-Regular',
fontWeight: FontWeight.bold,
),
),
),
),
],
),
),
),
],
),
);
}
Widget _totalBoxChickBuild(index) {
return Container(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Flexible(
child: Container(
// decoration: new BoxDecoration(
// color: Colors.grey[50],
// ),
width: 1,
// height: i == 0 ? 100 : 0,
// padding: i == 0 ? const EdgeInsets.only(bottom: 10) : const EdgeInsets.only(),
),
),
Flexible(
child: Column(
children: <Widget>[
Container(
padding: const EdgeInsets.only(top: 15),
child: Text(list[index].year, textAlign: TextAlign.right)),
],
),
),
Flexible(
child: Column(
children: <Widget>[
Container(
padding: const EdgeInsets.only(top: 15),
child: Text(list[index].month, textAlign: TextAlign.left)),
],
),
),
Flexible(
child: Column(
children: <Widget>[
Container(
padding: const EdgeInsets.only(top: 15),
// padding: i == 0 ? const EdgeInsets.only(top: 80) : const EdgeInsets.only(top: 20),
child: Text((list[index].salaya).toString(),
textAlign: TextAlign.right)),
],
),
),
Flexible(
child: Column(
children: <Widget>[
Container(
padding: const EdgeInsets.only(top: 15),
child: Text((list[index].hurulla).toString(),
textAlign: TextAlign.right)),
],
),
),
Flexible(
child: Column(
children: <Widget>[
Container(
padding: const EdgeInsets.only(top: 15),
child: Text((list[index].balaya).toString(),
textAlign: TextAlign.right)),
],
),
),
Flexible(
child: Column(
children: <Widget>[
Container(
padding: const EdgeInsets.only(top: 15),
child: Text((list[index].kelawalla).toString(),
textAlign: TextAlign.right)),
],
),
),
],
),
);
}
}
import 'package:flutter/material.dart';
const textInputDecoration = InputDecoration(
fillColor: Colors.white,
filled: true,
contentPadding: EdgeInsets.all(12.0),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.white, width: 2.0),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.pink, width: 2.0),
),
);
\ No newline at end of file
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
class Loading extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.blue[200],
child: Center(
child: SpinKitChasingDots(
color: Colors.blue,
size: 50.0,
),
),
);
}
}
\ No newline at end of file
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
bubble:
dependency: "direct main"
description:
name: bubble
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
camera:
dependency: "direct main"
description:
name: camera
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.4+21"
camera_platform_interface:
dependency: transitive
description:
name: camera_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.5"
camera_web:
dependency: transitive
description:
name: camera_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.1+3"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.16.0"
cross_file:
dependency: transitive
description:
name: cross_file
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.2"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
draggable_scrollbar:
dependency: "direct main"
description:
name: draggable_scrollbar
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_lints:
dependency: "direct dev"
description:
name: flutter_lints
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
flutter_spinkit:
dependency: "direct main"
description:
name: flutter_spinkit
url: "https://pub.dartlang.org"
source: hosted
version: "5.1.0"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
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.13.5"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
image_picker:
dependency: "direct main"
description:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.5"
image_picker_android:
dependency: transitive
description:
name: image_picker_android
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.4+11"
image_picker_for_web:
dependency: transitive
description:
name: image_picker_for_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.6"
image_picker_ios:
dependency: transitive
description:
name: image_picker_ios
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.4+11"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.4"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
lints:
dependency: transitive
description:
name: lints
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
permission_handler:
dependency: "direct main"
description:
name: permission_handler
url: "https://pub.dartlang.org"
source: hosted
version: "9.0.2"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.7.0"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1+1"
sky_engine:
dependency: transitive
description: flutter
source: sdk
version: "0.0.99"
source_span:
dependency: transitive
description:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.2"
sqflite:
dependency: "direct main"
description:
name: sqflite
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
sqflite_common:
dependency: transitive
description:
name: sqflite_common
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1+1"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
stream_transform:
dependency: transitive
description:
name: stream_transform
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
synchronized:
dependency: transitive
description:
name: synchronized
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0+2"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.9"
tflite:
dependency: "direct main"
description:
name: tflite
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
sdks:
dart: ">=2.17.0-0 <3.0.0"
flutter: ">=2.5.0"
name: fish_app
description: A new Flutter application.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
flutter_spinkit: ^5.1.0
camera: ^0.9.4+4
tflite: ^1.1.2
image_picker: ^0.8.5
permission_handler:
sqflite: ^2.0.2
draggable_scrollbar: ^0.1.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
bubble: ^1.2.1
http: ^0.13.5
dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^1.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
assets:
- assets/images/
- assets/fish_detection_model/
- assets/shrimp_detection_model/
- assets/unknown/
- assets/unknown_shrimp/
fonts:
- family: Fresca
fonts:
- asset: assets/fonts/Fresca-Regular.ttf
- family: Poppins
fonts:
- asset: assets/fonts/Poppins-Medium.ttf
- family: FredokaOne
fonts:
- asset: assets/fonts/FredokaOne-Regular.ttf
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:fish_app/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}
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