Commit e5649f56 by Ramesh Babu Puvvadi

added

parent 7248b815
{
"java.configuration.updateBuildConfiguration": "interactive",
"java.configuration.updateBuildConfiguration": "disabled",
"git.ignoreLimitWarning": true
}
\ No newline at end of file
......@@ -33,6 +33,7 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
......@@ -43,10 +44,7 @@ android {
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.photoshoot"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
......@@ -57,8 +55,6 @@ android {
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
}
}
......
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'
#platform :ios, '11.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
platform :ios, '12.0'
......
......@@ -26,14 +26,36 @@ PODS:
- Flutter
- platform_device_id (0.0.1):
- Flutter
- Reachability (3.2)
- Reachability (3.7.5)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- speech_to_text (0.0.1):
- Flutter
- Try
- Toast (4.0.0)
- TensorFlowLiteC (2.12.0):
- TensorFlowLiteC/Core (= 2.12.0)
- TensorFlowLiteC/Core (2.12.0)
- TensorFlowLiteC/CoreML (2.12.0):
- TensorFlowLiteC/Core
- TensorFlowLiteC/Metal (2.12.0):
- TensorFlowLiteC/Core
- TensorFlowLiteSwift (2.12.0):
- TensorFlowLiteSwift/Core (= 2.12.0)
- TensorFlowLiteSwift/Core (2.12.0):
- TensorFlowLiteC (= 2.12.0)
- TensorFlowLiteSwift/CoreML (2.12.0):
- TensorFlowLiteC/CoreML (= 2.12.0)
- TensorFlowLiteSwift/Core (= 2.12.0)
- TensorFlowLiteSwift/Metal (2.12.0):
- TensorFlowLiteC/Metal (= 2.12.0)
- TensorFlowLiteSwift/Core (= 2.12.0)
- tflite_flutter (0.0.1):
- Flutter
- TensorFlowLiteSwift (= 2.12.0)
- TensorFlowLiteSwift/CoreML (= 2.12.0)
- TensorFlowLiteSwift/Metal (= 2.12.0)
- Toast (4.1.0)
- TOCropViewController (2.6.1)
- Try (2.1.1)
......@@ -52,10 +74,13 @@ DEPENDENCIES:
- platform_device_id (from `.symlinks/plugins/platform_device_id/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- speech_to_text (from `.symlinks/plugins/speech_to_text/ios`)
- tflite_flutter (from `.symlinks/plugins/tflite_flutter/ios`)
SPEC REPOS:
trunk:
- Reachability
- TensorFlowLiteC
- TensorFlowLiteSwift
- Toast
- TOCropViewController
- Try
......@@ -89,6 +114,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
speech_to_text:
:path: ".symlinks/plugins/speech_to_text/ios"
tflite_flutter:
:path: ".symlinks/plugins/tflite_flutter/ios"
SPEC CHECKSUMS:
connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
......@@ -103,13 +130,16 @@ SPEC CHECKSUMS:
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
platform_device_id: 81b3e2993881f87d0c82ef151dc274df4869aef5
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
Reachability: 44d15955cdaee6cef699877e1f6647dd6f6698cc
shared_preferences_foundation: 986fc17f3d3251412d18b0265f9c64113a8c2472
speech_to_text: b43a7d99aef037bd758ed8e45d79bbac035d2dfe
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
TensorFlowLiteC: 20785a69299185a379ba9852b6625f00afd7984a
TensorFlowLiteSwift: 3a4928286e9e35bdd3e17970f48e53c80d25e793
tflite_flutter: 9433d086a3060431bbc9f3c7c20d017db0e72d08
Toast: ec33c32b8688982cecc6348adeae667c1b9938da
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
Try: 5ef669ae832617b3cee58cb2c6f99fb767a4ff96
PODFILE CHECKSUM: 1119d1c4de683e572c54a0dff7a594860d13ec5e
PODFILE CHECKSUM: 8760af036c854a98537ab1b9885e846c532bf2ad
COCOAPODS: 1.15.2
......@@ -17,13 +17,12 @@ class Constants {
static Future<void> showAlertDialog1(BuildContext context) async {
AlertDialog alert = AlertDialog(
content: new Row(
content: Row(
children: [
const CircularProgressIndicator(),
Container(
margin: const EdgeInsets.only(left: 5),
child: const Text("Loading")
),
child: const Text("Loading")),
],
),
);
......@@ -51,10 +50,11 @@ class Constants {
static showLoader(BuildContext ctx) {
showDialog(
context: ctx,
builder: (context) {
return const Center(child: CircularProgressIndicator());
});
context: ctx,
builder: (context) {
return const Center(child: CircularProgressIndicator());
}
);
}
static Future<void> saveLoginCredentials(String username, String token,
......@@ -79,20 +79,15 @@ class Constants {
}
static String hashPassword(String password) {
// Convert password string to bytes
var bytes = utf8.encode(password);
// Generate SHA-256 hash
var digest = sha256.convert(bytes);
// Convert digest to a string
return digest.toString();
}
showAlertDialog(BuildContext context) {
// set up the button
Widget okButton = TextButton(
child: Text("Cancel"),
child: const Text("Cancel"),
onPressed: () {
Navigator.of(context).pop();
});
......@@ -105,7 +100,6 @@ class Constants {
okButton,
],
);
// show the dialog
showDialog(
context: context,
......
import 'dart:async';
import 'dart:io';
import 'package:GrccaptureImages/Screen/Constants.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:image_picker/image_picker.dart';
import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart'
show FlutterBarcodeScanner, ScanMode;
import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart' show FlutterBarcodeScanner, ScanMode;
import 'Constants.dart';
class Home extends StatefulWidget {
const Home({super.key});
......@@ -30,8 +29,7 @@ class _Home extends State<Home> {
Future<void> _getImage(int index) async {
if (_barcodevalue.text.isEmpty) {
Constants('Barcode', 'Please Scan Barcode First')
.showAlertDialog(context);
Constants('Barcode', 'Please Scan Barcode First').showAlertDialog(context);
} else {
image = await _picker.pickImage(source: ImageSource.camera);
if (image != null) {
......@@ -50,22 +48,22 @@ class _Home extends State<Home> {
'Cancel',
true,
ScanMode.BARCODE,
//scanAreaWidth: 300,
//scanAreaHeight: 200,
// scanAreaWidth: 300,
// scanAreaHeight: 200,
);
if (kDebugMode) {
print(barcodeScanRes);
}
setState(() {
_barcodevalue.text = barcodeScanRes;
//if(barcodeScanRes == '-1') {
// _barcodevalue.text = '';
//}else{
// _barcodevalue.text = barcodeScanRes;
// if (RegExp(r'^[0-9]+$').hasMatch(_barcodevalue.text)) {
//if(barcodeScanRes == '-1') {
// _barcodevalue.text = '';
//} else{
// _barcodevalue.text = barcodeScanRes;
// if(RegExp(r'^[0-9]+$').hasMatch(_barcodevalue.text)) {
// _barcodevalue.text = '';
// startBarcodeScanStream();
// } else {
// }else{
// //getUpdate(_barcodevalue.text);
// }
//}
......@@ -108,7 +106,8 @@ class _Home extends State<Home> {
icon: Image.asset('assets/images/ic_barcode.png')),
]),
const SizedBox(height: 20),
Row(mainAxisAlignment: MainAxisAlignment.spaceAround, children: [
Row(mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Column(
children: [
const Text(
......
......@@ -49,8 +49,8 @@ class SplashScreenState extends State<SplashScreen> {
}
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(builder: (context) => const SignUp()),
(Route<dynamic> route) => false,
MaterialPageRoute(builder: (context) => const SignUp()),
(Route<dynamic> route) => false
);
}
});
......@@ -86,8 +86,6 @@ class SplashScreenState extends State<SplashScreen> {
);
}
/*Future<void> getDeviceId() async {
String uniqueDeviceId = (await PlatformDeviceId.getDeviceId)!;
print(uniqueDeviceId);
......@@ -102,6 +100,4 @@ class SplashScreenState extends State<SplashScreen> {
print(info.utsname.version); // "iPhone 14 Pro"
}
} */
}
......@@ -7,6 +7,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
tflite_flutter
)
set(PLUGIN_BUNDLED_LIBRARIES)
......
......@@ -752,6 +752,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.3"
quiver:
dependency: transitive
description:
name: quiver
sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47
url: "https://pub.dev"
source: hosted
version: "3.2.1"
rxdart:
dependency: transitive
description:
......@@ -965,6 +973,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.5.9"
tflite_flutter:
dependency: "direct main"
description:
name: tflite_flutter
sha256: ffb8651fdb116ab0131d6dc47ff73883e0f634ad1ab12bb2852eef1bbeab4a6a
url: "https://pub.dev"
source: hosted
version: "0.10.4"
typed_data:
dependency: transitive
description:
......
......@@ -51,6 +51,10 @@ dependencies:
permission_handler: ^10.4.0
speech_to_text: ^6.6.0
flutter_tts: ^3.5.1
tflite_flutter: ^0.10.4
#tflite: ^1.1.2
#audio_session: ^2.1.0
dev_dependencies:
......@@ -85,6 +89,7 @@ flutter:
- assets/images/camera.png
- assets/images/splash.png
- assets/images/ic_barcode.png
- assets/model.tflite
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
......
......@@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
tflite_flutter
)
set(PLUGIN_BUNDLED_LIBRARIES)
......
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