Commit a98af82f by Ramesh Babu Puvvadi

Initial commit

parent 1e1d27d5
...@@ -47,7 +47,7 @@ android { ...@@ -47,7 +47,7 @@ android {
applicationId "com.example.photoshoot" applicationId "com.example.photoshoot"
// You can update the following values to match your application needs. // 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. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion flutter.minSdkVersion minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
......
...@@ -5,4 +5,11 @@ ...@@ -5,4 +5,11 @@
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.
--> -->
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</queries>
</manifest> </manifest>
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
package="com.example.photoshoot"> package="com.example.photoshoot">
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</queries>
<application <application
android:label="photoshoot" android:label="photoshoot"
......
...@@ -5,4 +5,11 @@ ...@@ -5,4 +5,11 @@
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.
--> -->
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</queries>
</manifest> </manifest>
buildscript { buildscript {
ext.kotlin_version = '1.6.10' ext.kotlin_version = '1.9.22'
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
......
...@@ -9,6 +9,8 @@ PODS: ...@@ -9,6 +9,8 @@ PODS:
- Flutter (1.0.0) - Flutter (1.0.0)
- flutter_barcode_scanner (2.0.0): - flutter_barcode_scanner (2.0.0):
- Flutter - Flutter
- flutter_tts (0.0.1):
- Flutter
- fluttertoast (0.0.2): - fluttertoast (0.0.2):
- Flutter - Flutter
- Toast - Toast
...@@ -20,14 +22,20 @@ PODS: ...@@ -20,14 +22,20 @@ PODS:
- path_provider_foundation (0.0.1): - path_provider_foundation (0.0.1):
- Flutter - Flutter
- FlutterMacOS - FlutterMacOS
- permission_handler_apple (9.1.1):
- Flutter
- platform_device_id (0.0.1): - platform_device_id (0.0.1):
- Flutter - Flutter
- Reachability (3.2) - Reachability (3.2)
- shared_preferences_foundation (0.0.1): - shared_preferences_foundation (0.0.1):
- Flutter - Flutter
- FlutterMacOS - FlutterMacOS
- speech_to_text (0.0.1):
- Flutter
- Try
- Toast (4.0.0) - Toast (4.0.0)
- TOCropViewController (2.6.1) - TOCropViewController (2.6.1)
- Try (2.1.1)
DEPENDENCIES: DEPENDENCIES:
- connectivity (from `.symlinks/plugins/connectivity/ios`) - connectivity (from `.symlinks/plugins/connectivity/ios`)
...@@ -35,18 +43,22 @@ DEPENDENCIES: ...@@ -35,18 +43,22 @@ DEPENDENCIES:
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`) - device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- Flutter (from `Flutter`) - Flutter (from `Flutter`)
- flutter_barcode_scanner (from `.symlinks/plugins/flutter_barcode_scanner/ios`) - flutter_barcode_scanner (from `.symlinks/plugins/flutter_barcode_scanner/ios`)
- flutter_tts (from `.symlinks/plugins/flutter_tts/ios`)
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`) - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
- image_cropper (from `.symlinks/plugins/image_cropper/ios`) - image_cropper (from `.symlinks/plugins/image_cropper/ios`)
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`) - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- platform_device_id (from `.symlinks/plugins/platform_device_id/ios`) - platform_device_id (from `.symlinks/plugins/platform_device_id/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- speech_to_text (from `.symlinks/plugins/speech_to_text/ios`)
SPEC REPOS: SPEC REPOS:
trunk: trunk:
- Reachability - Reachability
- Toast - Toast
- TOCropViewController - TOCropViewController
- Try
EXTERNAL SOURCES: EXTERNAL SOURCES:
connectivity: connectivity:
...@@ -59,6 +71,8 @@ EXTERNAL SOURCES: ...@@ -59,6 +71,8 @@ EXTERNAL SOURCES:
:path: Flutter :path: Flutter
flutter_barcode_scanner: flutter_barcode_scanner:
:path: ".symlinks/plugins/flutter_barcode_scanner/ios" :path: ".symlinks/plugins/flutter_barcode_scanner/ios"
flutter_tts:
:path: ".symlinks/plugins/flutter_tts/ios"
fluttertoast: fluttertoast:
:path: ".symlinks/plugins/fluttertoast/ios" :path: ".symlinks/plugins/fluttertoast/ios"
image_cropper: image_cropper:
...@@ -67,10 +81,14 @@ EXTERNAL SOURCES: ...@@ -67,10 +81,14 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/image_picker_ios/ios" :path: ".symlinks/plugins/image_picker_ios/ios"
path_provider_foundation: path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin" :path: ".symlinks/plugins/path_provider_foundation/darwin"
permission_handler_apple:
:path: ".symlinks/plugins/permission_handler_apple/ios"
platform_device_id: platform_device_id:
:path: ".symlinks/plugins/platform_device_id/ios" :path: ".symlinks/plugins/platform_device_id/ios"
shared_preferences_foundation: shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin" :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
speech_to_text:
:path: ".symlinks/plugins/speech_to_text/ios"
SPEC CHECKSUMS: SPEC CHECKSUMS:
connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467 connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
...@@ -78,16 +96,20 @@ SPEC CHECKSUMS: ...@@ -78,16 +96,20 @@ SPEC CHECKSUMS:
device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_barcode_scanner: 7a1144744c28dc0c57a8de7218ffe5ec59a9e4bf flutter_barcode_scanner: 7a1144744c28dc0c57a8de7218ffe5ec59a9e4bf
flutter_tts: 0f492aab6accf87059b72354fcb4ba934304771d
fluttertoast: 48c57db1b71b0ce9e6bba9f31c940ff4b001293c fluttertoast: 48c57db1b71b0ce9e6bba9f31c940ff4b001293c
image_cropper: 60c2789d1f1a78c873235d4319ca0c34a69f2d98 image_cropper: 60c2789d1f1a78c873235d4319ca0c34a69f2d98
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5 image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9 path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
platform_device_id: 81b3e2993881f87d0c82ef151dc274df4869aef5 platform_device_id: 81b3e2993881f87d0c82ef151dc274df4869aef5
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96 Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
shared_preferences_foundation: 986fc17f3d3251412d18b0265f9c64113a8c2472 shared_preferences_foundation: 986fc17f3d3251412d18b0265f9c64113a8c2472
speech_to_text: b43a7d99aef037bd758ed8e45d79bbac035d2dfe
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196 Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
Try: 5ef669ae832617b3cee58cb2c6f99fb767a4ff96
PODFILE CHECKSUM: 1119d1c4de683e572c54a0dff7a594860d13ec5e PODFILE CHECKSUM: 1119d1c4de683e572c54a0dff7a594860d13ec5e
COCOAPODS: 1.13.0 COCOAPODS: 1.15.2
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string> <string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
<string>Photoshoot</string> <string>GrcCaptureImages</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string> <string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>photoshoot</string> <string>GrcCaptureImages</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
<false/> <false/>
<key>UIStatusBarStyle</key> <key>UIStatusBarStyle</key>
<string></string> <string></string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Speech recognition allows you to use text-to-speech and speech</string>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
<string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeLeft</string>
......
import 'dart:convert'; import 'dart:convert';
import 'dart:core'; import 'dart:core';
import 'dart:io';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:photoshoot/Model/NamedFile.dart';
import '../Model/LoginResponse.dart'; import '../Model/LoginResponse.dart';
import '../Model/NamedFile.dart';
import '../Model/Store.dart'; import '../Model/Store.dart';
import '../Model/Upload.dart'; import '../Model/Upload.dart';
class RemoteData { class RemoteData {
String baseUrl = 'http://posapi.plutokm.com/'; String baseUrl = 'http://posapi.plutokm.com/';
String storeid = 'http://posapi.plutokm.com/login/getStoresMappedToUser/'; String storeid = 'http://posapi.plutokm.com/login/getStoresMappedToUser/';
String loginurl = 'http://posapi.plutokm.com/login/doLogin'; String loginurl= 'http://posapi.plutokm.com/login/doLogin';
String logout = 'http://posapi.plutokm.com/login/doLogout/'; String logout = 'http://posapi.plutokm.com/login/doLogout/';
String speechtotext = 'http://192.168.65.148:5113/mobile_response/';
String validbarcode = String validbarcode =
'https://plutokm.com/tools/MobileApps_onlyklm_MagicCommonBackend/is_barcode_alreadygrcd.php?barcode='; 'https://plutokm.com/tools/MobileApps_onlyklm_MagicCommonBackend/is_barcode_alreadygrcd.php?barcode=';
String uploadimages = String uploadimages =
'https://plutokm.com/tools/MobileApps_onlyklm_MagicCommonBackend/catalog_capture_images.php'; 'https://plutokm.com/tools/MobileApps_onlyklm_MagicCommonBackend/catalog_capture_images.php';
String type = "Content-Type"; String type = "Content-Type";
String appjson = "application/json"; String appjson = "application/json";
//8978968396
//Stores List Request GET Method //Stores List Request GET Method
Future<List<Datum>?> getStoreList(String id) async { Future<List<Datum>?> getStoreList(String id) async {
...@@ -42,8 +45,7 @@ class RemoteData { ...@@ -42,8 +45,7 @@ class RemoteData {
} }
//Login Request POST Method //Login Request POST Method
Future<LoginResponse> getLoginRequest( Future<LoginResponse> getLoginRequest(String email, String pass, int storeId) async {
String email, String pass, int storeId) async {
Map<String, dynamic> body = { Map<String, dynamic> body = {
'emp_id': email, 'emp_id': email,
'password': pass, 'password': pass,
...@@ -60,6 +62,25 @@ class RemoteData { ...@@ -60,6 +62,25 @@ class RemoteData {
} }
} }
Future<String> getSpeechResponse(String? text) async {
var header = {type: appjson};
var res = '';
var response = await http.post(
Uri.parse('$speechtotext$text'),
headers: header,
);
if (kDebugMode) {
print(response.statusCode);
}
if (response.statusCode == 200) {
res = response.body;
if (kDebugMode) {
print('Logout : $res');
}
}
return res;
}
//Logout Request GET Method //Logout Request GET Method
Future<String> getLogout(String? id) async { Future<String> getLogout(String? id) async {
var header = {type: appjson}; var header = {type: appjson};
...@@ -85,7 +106,11 @@ class RemoteData { ...@@ -85,7 +106,11 @@ class RemoteData {
type: appjson, type: appjson,
}); });
request.fields['barcode'] = barcode; request.fields['barcode'] = barcode;
if (Platform.isAndroid) {
request.fields['APPOS'] = 'ANDROID';
} else if (Platform.isIOS) {
request.fields['APPOS'] = 'IOS'; request.fields['APPOS'] = 'IOS';
}
request.fields['DeviceModel'] = model; request.fields['DeviceModel'] = model;
request.fields['DeviceUUID'] = ''; request.fields['DeviceUUID'] = '';
request.fields['Channels'] = channels; request.fields['Channels'] = channels;
......
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';
import 'package:GrccaptureImages/Screen/Constants.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:image_picker/image_picker.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'
import 'package:photoshoot/Screen/Constants.dart'; show FlutterBarcodeScanner, ScanMode;
@immutable
class Home extends StatefulWidget { class Home extends StatefulWidget {
const Home({super.key}); const Home({super.key});
@override @override
State<StatefulWidget> createState() => _Home(); State<StatefulWidget> createState() => _Home();
} }
...@@ -37,14 +38,6 @@ class _Home extends State<Home> { ...@@ -37,14 +38,6 @@ class _Home extends State<Home> {
imagefile = File(image!.path); imagefile = File(image!.path);
} else { } else {
image = await _picker.pickImage(source: ImageSource.camera); image = await _picker.pickImage(source: ImageSource.camera);
//Toast.show('Enter UserId', duration: 2000, gravity: Toast.center);
/* Fluttertoast.showToast(
msg: 'Enter UserId',
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 1,
textColor: Colors.black,
fontSize: 16.0); */
} }
} }
} }
...@@ -65,9 +58,9 @@ class _Home extends State<Home> { ...@@ -65,9 +58,9 @@ class _Home extends State<Home> {
} }
setState(() { setState(() {
_barcodevalue.text = barcodeScanRes; _barcodevalue.text = barcodeScanRes;
//if (barcodeScanRes == '-1') { //if(barcodeScanRes == '-1') {
// _barcodevalue.text = ''; // _barcodevalue.text = '';
//} else { //}else{
// _barcodevalue.text = barcodeScanRes; // _barcodevalue.text = barcodeScanRes;
// if (RegExp(r'^[0-9]+$').hasMatch(_barcodevalue.text)) { // if (RegExp(r'^[0-9]+$').hasMatch(_barcodevalue.text)) {
// _barcodevalue.text = ''; // _barcodevalue.text = '';
......
...@@ -6,14 +6,16 @@ import 'package:flutter/material.dart'; ...@@ -6,14 +6,16 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:image_cropper/image_cropper.dart'; import 'package:image_cropper/image_cropper.dart';
import 'package:image_picker/image_picker.dart'; import 'package:image_picker/image_picker.dart';
import 'package:photoshoot/Model/NamedFile.dart';
import 'package:photoshoot/Model/Upload.dart';
import 'package:photoshoot/Remote/RemoteData.dart';
import 'package:photoshoot/Screen/Constants.dart';
import 'package:photoshoot/Screen/SignUp.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart'; import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart';
import '../Model/NamedFile.dart';
import '../Model/Upload.dart';
import '../Remote/RemoteData.dart';
import 'Constants.dart';
import 'SignUp.dart';
@immutable @immutable
class MultipleImages extends StatefulWidget { class MultipleImages extends StatefulWidget {
const MultipleImages({super.key}); const MultipleImages({super.key});
...@@ -202,9 +204,16 @@ class _MultipleImages extends State<MultipleImages> { ...@@ -202,9 +204,16 @@ class _MultipleImages extends State<MultipleImages> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
appBar: AppBar(title: const Text('Multiple Images'), actions: [ appBar: AppBar(
title: const Text('GRC Capture Images'),
backgroundColor: const Color.fromARGB(255, 23, 94, 228),
titleTextStyle: const TextStyle(color: Colors.white, fontSize: 22),
actions: [
IconButton( IconButton(
icon: const Icon(Icons.logout), icon: const Icon(
Icons.logout,
color: Colors.white,
),
onPressed: () async { onPressed: () async {
bool valid = await Constants.checkInternetConnectivity(); bool valid = await Constants.checkInternetConnectivity();
if (valid) { if (valid) {
...@@ -215,7 +224,8 @@ class _MultipleImages extends State<MultipleImages> { ...@@ -215,7 +224,8 @@ class _MultipleImages extends State<MultipleImages> {
} }
}, },
), ),
]), ],
),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
margin: const EdgeInsets.all(10.0), margin: const EdgeInsets.all(10.0),
...@@ -439,8 +449,8 @@ class _MultipleImages extends State<MultipleImages> { ...@@ -439,8 +449,8 @@ class _MultipleImages extends State<MultipleImages> {
), ),
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
backgroundColor: Colors.blue, backgroundColor: const Color.fromARGB(255, 23, 94, 228),
minimumSize: const Size.fromHeight(50), minimumSize: const Size.fromHeight(55),
), ),
onPressed: () async { onPressed: () async {
int count = 0; int count = 0;
...@@ -659,7 +669,6 @@ class _MultipleImages extends State<MultipleImages> { ...@@ -659,7 +669,6 @@ class _MultipleImages extends State<MultipleImages> {
shoot = 'KANCHIVML'; shoot = 'KANCHIVML';
} }
} }
if (_isChecked2) { if (_isChecked2) {
if (shoot != null) { if (shoot != null) {
shoot = '$shoot,BRANDMANDIR'; shoot = '$shoot,BRANDMANDIR';
...@@ -682,31 +691,15 @@ class _MultipleImages extends State<MultipleImages> { ...@@ -682,31 +691,15 @@ class _MultipleImages extends State<MultipleImages> {
var storeId = prefs.getString("store_Id"); var storeId = prefs.getString("store_Id");
String? token = prefs.getString('userToken'); String? token = prefs.getString('userToken');
String? model = ''; String? model = '';
// /* String uniqueDeviceId = (await PlatformDeviceId.getDeviceId)!;
// if (Platform.isAndroid) {
// final info = await DeviceInfoPlugin().iosInfo;
// Model = info.model!;
// print(info.model);
// //print(info.systemVersion);
// }
// if (Platform.isIOS) {
// final info = await DeviceInfoPlugin().iosInfo;
// print(info.utsname.machine); // "iPhone15,2"
// print(info.utsname.version); // "iPhone 14 Pro"
// }
if (kDebugMode) { if (kDebugMode) {
print('Selected Shoot :$shoot'); print('Selected Shoot :$shoot');
} }
showDialog( showDialog(
context: context, context: context,
builder: (context) { builder: (context) {
return const Center( return const Center(
child: CircularProgressIndicator()); child: CircularProgressIndicator());
}); });
Upload? upload; Upload? upload;
if (token != null) { if (token != null) {
upload = await RemoteData().uploadImages( upload = await RemoteData().uploadImages(
...@@ -794,7 +787,8 @@ class _MultipleImages extends State<MultipleImages> { ...@@ -794,7 +787,8 @@ class _MultipleImages extends State<MultipleImages> {
} }
//_showMyDialog(context); //_showMyDialog(context);
}, },
child: const Text('Upload Images'), child: const Text('Upload Images',
style: TextStyle(fontSize: 16, color: Colors.white)),
), ),
], ],
), ),
......
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:photoshoot/Screen/PieChart.dart';
import 'package:charts_flutter/flutter.dart' as charts; import 'package:charts_flutter/flutter.dart' as charts;
import 'PieChart.dart';
class MyPieChart extends StatelessWidget { class MyPieChart extends StatelessWidget {
final List<ChartData> data; final List<ChartData> data;
......
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:photoshoot/Screen/MyPieChart.dart';
import 'MyPieChart.dart';
class PieChart extends StatelessWidget { class PieChart extends StatelessWidget {
@override @override
......
...@@ -59,8 +59,6 @@ class _SignUpState extends State<SignUp> { ...@@ -59,8 +59,6 @@ class _SignUpState extends State<SignUp> {
super.dispose(); super.dispose();
} }
//
@override @override
void initState() { void initState() {
super.initState(); super.initState();
...@@ -70,7 +68,7 @@ class _SignUpState extends State<SignUp> { ...@@ -70,7 +68,7 @@ class _SignUpState extends State<SignUp> {
if (_focusNode.hasFocus) { if (_focusNode.hasFocus) {
bool isInternetConnected = bool isInternetConnected =
await Constants.checkInternetConnectivity(); await Constants.checkInternetConnectivity();
if(isInternetConnected) { if (isInternetConnected) {
showDialog( showDialog(
context: context, context: context,
builder: (context) { builder: (context) {
...@@ -84,7 +82,7 @@ class _SignUpState extends State<SignUp> { ...@@ -84,7 +82,7 @@ class _SignUpState extends State<SignUp> {
storesList = storesList; storesList = storesList;
}); });
} else { } else {
Constants('LoginPage', 'Check your network connection') Constants('LoginPage', 'check your network connection')
.showAlertDialog(context); .showAlertDialog(context);
} }
} else { } else {
...@@ -105,12 +103,15 @@ class _SignUpState extends State<SignUp> { ...@@ -105,12 +103,15 @@ class _SignUpState extends State<SignUp> {
} }
}); });
} }
final FocusNode _focusNode = FocusNode(); final FocusNode _focusNode = FocusNode();
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: const Text('Login '), title: const Text('Login '),
backgroundColor: const Color.fromARGB(255, 23, 94, 228),
titleTextStyle: const TextStyle(color: Colors.white, fontSize: 22),
), ),
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
body: Container( body: Container(
...@@ -166,6 +167,10 @@ class _SignUpState extends State<SignUp> { ...@@ -166,6 +167,10 @@ class _SignUpState extends State<SignUp> {
), ),
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: const Color.fromARGB(255, 23, 94, 228),
minimumSize: const Size.fromHeight(60),
),
onPressed: () async { onPressed: () async {
if (_email.text.isEmpty && _pass.text.isEmpty) { if (_email.text.isEmpty && _pass.text.isEmpty) {
Constants('Login ', 'Enter email and password') Constants('Login ', 'Enter email and password')
...@@ -194,7 +199,8 @@ class _SignUpState extends State<SignUp> { ...@@ -194,7 +199,8 @@ class _SignUpState extends State<SignUp> {
? const CircularProgressIndicator( ? const CircularProgressIndicator(
color: Colors.amber, color: Colors.amber,
) )
: const Text('Sign In'), : const Text('Sign In',
style: TextStyle(fontSize: 16, color: Colors.white)),
), ),
), ),
), ),
......
import 'dart:async'; import 'dart:async';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:photoshoot/Screen/MultipleImages.dart';
import 'package:photoshoot/Screen/SignUp.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'MultipleImages.dart';
import 'SignUp.dart';
class UserPreferences { class UserPreferences {
static const String isLoggedInKey = 'isLoggedIn'; static const String isLoggedInKey = 'isLoggedIn';
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:photoshoot/Screen/SplashScreen.dart'; import 'Screen/SplashScreen.dart';
void main() => runApp(const MaterialApp( void main() => runApp(const MaterialApp(
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
......
...@@ -7,16 +7,20 @@ import Foundation ...@@ -7,16 +7,20 @@ import Foundation
import connectivity_macos import connectivity_macos
import device_info_plus import device_info_plus
import flutter_tts
import path_provider_foundation import path_provider_foundation
import platform_device_id import platform_device_id
import platform_device_id_macos import platform_device_id_macos
import shared_preferences_foundation import shared_preferences_foundation
import speech_to_text_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin")) ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin"))
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FlutterTtsPlugin.register(with: registry.registrar(forPlugin: "FlutterTtsPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
PlatformDeviceIdMacosPlugin.register(with: registry.registrar(forPlugin: "PlatformDeviceIdMacosPlugin")) PlatformDeviceIdMacosPlugin.register(with: registry.registrar(forPlugin: "PlatformDeviceIdMacosPlugin"))
PlatformDeviceIdMacosPlugin.register(with: registry.registrar(forPlugin: "PlatformDeviceIdMacosPlugin")) PlatformDeviceIdMacosPlugin.register(with: registry.registrar(forPlugin: "PlatformDeviceIdMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SpeechToTextMacosPlugin.register(with: registry.registrar(forPlugin: "SpeechToTextMacosPlugin"))
} }
...@@ -5,18 +5,18 @@ packages: ...@@ -5,18 +5,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: _fe_analyzer_shared name: _fe_analyzer_shared
sha256: "4897882604d919befd350648c7f91926a9d5de99e67b455bf0917cc2362f4bb8" sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "47.0.0" version: "64.0.0"
analyzer: analyzer:
dependency: transitive dependency: transitive
description: description:
name: analyzer name: analyzer
sha256: "690e335554a8385bc9d787117d9eb52c0c03ee207a607e593de3c9d71b1cfe80" sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.7.0" version: "6.2.0"
archive: archive:
dependency: transitive dependency: transitive
description: description:
...@@ -117,10 +117,10 @@ packages: ...@@ -117,10 +117,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.17.2" version: "1.18.0"
connectivity: connectivity:
dependency: "direct main" dependency: "direct main"
description: description:
...@@ -307,6 +307,14 @@ packages: ...@@ -307,6 +307,14 @@ packages:
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" version: "0.0.0"
flutter_tts:
dependency: "direct main"
description:
name: flutter_tts
sha256: cbb3fd43b946e62398560235469e6113e4fe26c40eab1b7cb5e7c417503fb3a8
url: "https://pub.dev"
source: hosted
version: "3.8.5"
flutter_web_plugins: flutter_web_plugins:
dependency: transitive dependency: transitive
description: flutter description: flutter
...@@ -500,10 +508,10 @@ packages: ...@@ -500,10 +508,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.9.1" version: "1.10.0"
mime: mime:
dependency: transitive dependency: transitive
description: description:
...@@ -592,6 +600,54 @@ packages: ...@@ -592,6 +600,54 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.5" version: "2.1.5"
pedantic:
dependency: transitive
description:
name: pedantic
sha256: "67fc27ed9639506c856c840ccce7594d0bdcd91bc8d53d6e52359449a1d50602"
url: "https://pub.dev"
source: hosted
version: "1.11.1"
permission_handler:
dependency: "direct main"
description:
name: permission_handler
sha256: bc56bfe9d3f44c3c612d8d393bd9b174eb796d706759f9b495ac254e4294baa5
url: "https://pub.dev"
source: hosted
version: "10.4.5"
permission_handler_android:
dependency: transitive
description:
name: permission_handler_android
sha256: "59c6322171c29df93a22d150ad95f3aa19ed86542eaec409ab2691b8f35f9a47"
url: "https://pub.dev"
source: hosted
version: "10.3.6"
permission_handler_apple:
dependency: transitive
description:
name: permission_handler_apple
sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5"
url: "https://pub.dev"
source: hosted
version: "9.1.4"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
sha256: "6760eb5ef34589224771010805bea6054ad28453906936f843a8cc4d3a55c4a4"
url: "https://pub.dev"
source: hosted
version: "3.12.0"
permission_handler_windows:
dependency: transitive
description:
name: permission_handler_windows
sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098
url: "https://pub.dev"
source: hosted
version: "0.1.3"
petitparser: petitparser:
dependency: transitive dependency: transitive
description: description:
...@@ -821,14 +877,38 @@ packages: ...@@ -821,14 +877,38 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.10.0" version: "1.10.0"
speech_to_text:
dependency: "direct main"
description:
name: speech_to_text
sha256: "57fef1d41bdebe298e84842c89bb4ac91f31cdbec7830c8cb1fc6b91d03abd42"
url: "https://pub.dev"
source: hosted
version: "6.6.0"
speech_to_text_macos:
dependency: transitive
description:
name: speech_to_text_macos
sha256: e685750f7542fcaa087a5396ee471e727ec648bf681f4da83c84d086322173f6
url: "https://pub.dev"
source: hosted
version: "1.1.0"
speech_to_text_platform_interface:
dependency: transitive
description:
name: speech_to_text_platform_interface
sha256: a0df1a907091ea09880077dc25aae02af9f79811264e6e97ddb08639b7f771c2
url: "https://pub.dev"
source: hosted
version: "2.2.0"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
name: stack_trace name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.11.0" version: "1.11.1"
state_notifier: state_notifier:
dependency: transitive dependency: transitive
description: description:
...@@ -841,10 +921,10 @@ packages: ...@@ -841,10 +921,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: stream_channel name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.1" version: "2.1.2"
string_scanner: string_scanner:
dependency: transitive dependency: transitive
description: description:
...@@ -865,26 +945,26 @@ packages: ...@@ -865,26 +945,26 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: test name: test
sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46" sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.24.3" version: "1.24.9"
test_api: test_api:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.6.0" version: "0.6.1"
test_core: test_core:
dependency: transitive dependency: transitive
description: description:
name: test_core name: test_core
sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e" sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.5.3" version: "0.5.9"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
...@@ -921,10 +1001,10 @@ packages: ...@@ -921,10 +1001,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: web name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.1.4-beta" version: "0.3.0"
web_socket_channel: web_socket_channel:
dependency: transitive dependency: transitive
description: description:
...@@ -974,5 +1054,5 @@ packages: ...@@ -974,5 +1054,5 @@ packages:
source: hosted source: hosted
version: "3.1.1" version: "3.1.1"
sdks: sdks:
dart: ">=3.1.0-185.0.dev <3.7.0" dart: ">=3.2.0-194.0.dev <3.7.0"
flutter: ">=3.3.0" flutter: ">=3.10.0"
name: photoshoot name: GrccaptureImages
description: A new Flutter project. description: A new Flutter project.
# The following line prevents the package from being accidentally published to # The following line prevents the package from being accidentally published to
...@@ -48,6 +48,10 @@ dependencies: ...@@ -48,6 +48,10 @@ dependencies:
carousel_slider: ^4.2.1 carousel_slider: ^4.2.1
flutter_spinkit: ^5.1.0 flutter_spinkit: ^5.1.0
flutter_launcher_icons: ^0.11.0 flutter_launcher_icons: ^0.11.0
permission_handler: ^10.4.0
speech_to_text: ^6.6.0
flutter_tts: ^3.5.1
#audio_session: ^2.1.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
......
...@@ -6,9 +6,15 @@ ...@@ -6,9 +6,15 @@
#include "generated_plugin_registrant.h" #include "generated_plugin_registrant.h"
#include <flutter_tts/flutter_tts_plugin.h>
#include <permission_handler_windows/permission_handler_windows_plugin.h>
#include <platform_device_id_windows/platform_device_id_windows_plugin.h> #include <platform_device_id_windows/platform_device_id_windows_plugin.h>
void RegisterPlugins(flutter::PluginRegistry* registry) { void RegisterPlugins(flutter::PluginRegistry* registry) {
FlutterTtsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FlutterTtsPlugin"));
PermissionHandlerWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
PlatformDeviceIdWindowsPluginRegisterWithRegistrar( PlatformDeviceIdWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PlatformDeviceIdWindowsPlugin")); registry->GetRegistrarForPlugin("PlatformDeviceIdWindowsPlugin"));
} }
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
# #
list(APPEND FLUTTER_PLUGIN_LIST list(APPEND FLUTTER_PLUGIN_LIST
flutter_tts
permission_handler_windows
platform_device_id_windows platform_device_id_windows
) )
......
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