Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PhotoShootFlutter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ramesh Babu Puvvadi
PhotoShootFlutter
Commits
1e1d27d5
Commit
1e1d27d5
authored
Nov 01, 2023
by
Ramesh Babu Puvvadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add changes
parent
33ba968b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
115 additions
and
117 deletions
+115
-117
Podfile
ios/Podfile
+1
-1
Podfile.lock
ios/Podfile.lock
+3
-3
project.pbxproj
ios/Runner.xcodeproj/project.pbxproj
+16
-9
Info.plist
ios/Runner/Info.plist
+2
-2
RemoteData.dart
lib/Remote/RemoteData.dart
+5
-3
Home.dart
lib/Screen/Home.dart
+4
-15
MultipleImages.dart
lib/Screen/MultipleImages.dart
+67
-62
SignUp.dart
lib/Screen/SignUp.dart
+17
-22
No files found.
ios/Podfile
View file @
1e1d27d5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# platform :ios, '11.0'
# platform :ios, '11.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
platform
:ios
,
'1
1
.0'
platform
:ios
,
'1
2
.0'
ENV
[
'COCOAPODS_DISABLE_STATS'
]
=
'true'
ENV
[
'COCOAPODS_DISABLE_STATS'
]
=
'true'
...
...
ios/Podfile.lock
View file @
1e1d27d5
...
@@ -78,7 +78,7 @@ SPEC CHECKSUMS:
...
@@ -78,7 +78,7 @@ SPEC CHECKSUMS:
device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed
device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_barcode_scanner: 7a1144744c28dc0c57a8de7218ffe5ec59a9e4bf
flutter_barcode_scanner: 7a1144744c28dc0c57a8de7218ffe5ec59a9e4bf
fluttertoast:
eb263d302cc92e04176c053d2385237e9f43fad0
fluttertoast:
48c57db1b71b0ce9e6bba9f31c940ff4b001293c
image_cropper: 60c2789d1f1a78c873235d4319ca0c34a69f2d98
image_cropper: 60c2789d1f1a78c873235d4319ca0c34a69f2d98
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
...
@@ -88,6 +88,6 @@ SPEC CHECKSUMS:
...
@@ -88,6 +88,6 @@ SPEC CHECKSUMS:
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
PODFILE CHECKSUM:
f2b3bd02c4756e2d270495857f0d81bb13b42db
e
PODFILE CHECKSUM:
1119d1c4de683e572c54a0dff7a594860d13ec5
e
COCOAPODS: 1.1
2.1
COCOAPODS: 1.1
3.0
ios/Runner.xcodeproj/project.pbxproj
View file @
1e1d27d5
...
@@ -141,6 +141,7 @@
...
@@ -141,6 +141,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
isa
=
PBXProject
;
attributes
=
{
attributes
=
{
BuildIndependentTargetsInParallel
=
YES
;
LastUpgradeCheck
=
1430
;
LastUpgradeCheck
=
1430
;
ORGANIZATIONNAME
=
""
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
TargetAttributes
=
{
...
@@ -310,6 +311,7 @@
...
@@ -310,6 +311,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_LITERAL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_LITERAL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
=
YES
;
CLANG_WARN_RANGE_LOOP_ANALYSIS
=
YES
;
CLANG_WARN_RANGE_LOOP_ANALYSIS
=
YES
;
CLANG_WARN_STRICT_PROTOTYPES
=
YES
;
CLANG_WARN_STRICT_PROTOTYPES
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
...
@@ -320,6 +322,7 @@
...
@@ -320,6 +322,7 @@
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
ENABLE_NS_ASSERTIONS
=
NO
;
ENABLE_NS_ASSERTIONS
=
NO
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
GCC_C_LANGUAGE_STANDARD
=
gnu99
;
GCC_C_LANGUAGE_STANDARD
=
gnu99
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_WARN_64_TO_32_BIT_CONVERSION
=
YES
;
GCC_WARN_64_TO_32_BIT_CONVERSION
=
YES
;
...
@@ -328,7 +331,7 @@
...
@@ -328,7 +331,7 @@
GCC_WARN_UNINITIALIZED_AUTOS
=
YES_AGGRESSIVE
;
GCC_WARN_UNINITIALIZED_AUTOS
=
YES_AGGRESSIVE
;
GCC_WARN_UNUSED_FUNCTION
=
YES
;
GCC_WARN_UNUSED_FUNCTION
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
IPHONEOS_DEPLOYMENT_TARGET
=
1
1
.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
1
2
.0
;
MTL_ENABLE_DEBUG_INFO
=
NO
;
MTL_ENABLE_DEBUG_INFO
=
NO
;
SDKROOT
=
iphoneos
;
SDKROOT
=
iphoneos
;
SUPPORTED_PLATFORMS
=
iphoneos
;
SUPPORTED_PLATFORMS
=
iphoneos
;
...
@@ -347,7 +350,7 @@
...
@@ -347,7 +350,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
AX549G5V4E
;
DEVELOPMENT_TEAM
=
26J2TYD7PU
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
INFOPLIST_FILE
=
Runner/Info.plist
;
INFOPLIST_FILE
=
Runner/Info.plist
;
INFOPLIST_KEY_CFBundleDisplayName
=
PhotoShoot
;
INFOPLIST_KEY_CFBundleDisplayName
=
PhotoShoot
;
...
@@ -357,7 +360,7 @@
...
@@ -357,7 +360,7 @@
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
1.1.2
;
MARKETING_VERSION
=
1.1.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
example
.photoshoot
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
sopt
.photoshoot
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Runner/Runner-Bridging-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Runner/Runner-Bridging-Header.h"
;
...
@@ -389,6 +392,7 @@
...
@@ -389,6 +392,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_LITERAL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_LITERAL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
=
YES
;
CLANG_WARN_RANGE_LOOP_ANALYSIS
=
YES
;
CLANG_WARN_RANGE_LOOP_ANALYSIS
=
YES
;
CLANG_WARN_STRICT_PROTOTYPES
=
YES
;
CLANG_WARN_STRICT_PROTOTYPES
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
...
@@ -399,6 +403,7 @@
...
@@ -399,6 +403,7 @@
DEBUG_INFORMATION_FORMAT
=
dwarf
;
DEBUG_INFORMATION_FORMAT
=
dwarf
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
ENABLE_TESTABILITY
=
YES
;
ENABLE_TESTABILITY
=
YES
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
GCC_C_LANGUAGE_STANDARD
=
gnu99
;
GCC_C_LANGUAGE_STANDARD
=
gnu99
;
GCC_DYNAMIC_NO_PIC
=
NO
;
GCC_DYNAMIC_NO_PIC
=
NO
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_NO_COMMON_BLOCKS
=
YES
;
...
@@ -413,7 +418,7 @@
...
@@ -413,7 +418,7 @@
GCC_WARN_UNINITIALIZED_AUTOS
=
YES_AGGRESSIVE
;
GCC_WARN_UNINITIALIZED_AUTOS
=
YES_AGGRESSIVE
;
GCC_WARN_UNUSED_FUNCTION
=
YES
;
GCC_WARN_UNUSED_FUNCTION
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
IPHONEOS_DEPLOYMENT_TARGET
=
1
1
.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
1
2
.0
;
MTL_ENABLE_DEBUG_INFO
=
YES
;
MTL_ENABLE_DEBUG_INFO
=
YES
;
ONLY_ACTIVE_ARCH
=
YES
;
ONLY_ACTIVE_ARCH
=
YES
;
SDKROOT
=
iphoneos
;
SDKROOT
=
iphoneos
;
...
@@ -444,6 +449,7 @@
...
@@ -444,6 +449,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
=
YES
;
CLANG_WARN_OBJC_LITERAL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_LITERAL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
=
YES
;
CLANG_WARN_RANGE_LOOP_ANALYSIS
=
YES
;
CLANG_WARN_RANGE_LOOP_ANALYSIS
=
YES
;
CLANG_WARN_STRICT_PROTOTYPES
=
YES
;
CLANG_WARN_STRICT_PROTOTYPES
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
...
@@ -454,6 +460,7 @@
...
@@ -454,6 +460,7 @@
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
DEBUG_INFORMATION_FORMAT
=
"dwarf-with-dsym"
;
ENABLE_NS_ASSERTIONS
=
NO
;
ENABLE_NS_ASSERTIONS
=
NO
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
GCC_C_LANGUAGE_STANDARD
=
gnu99
;
GCC_C_LANGUAGE_STANDARD
=
gnu99
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_NO_COMMON_BLOCKS
=
YES
;
GCC_WARN_64_TO_32_BIT_CONVERSION
=
YES
;
GCC_WARN_64_TO_32_BIT_CONVERSION
=
YES
;
...
@@ -462,7 +469,7 @@
...
@@ -462,7 +469,7 @@
GCC_WARN_UNINITIALIZED_AUTOS
=
YES_AGGRESSIVE
;
GCC_WARN_UNINITIALIZED_AUTOS
=
YES_AGGRESSIVE
;
GCC_WARN_UNUSED_FUNCTION
=
YES
;
GCC_WARN_UNUSED_FUNCTION
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
IPHONEOS_DEPLOYMENT_TARGET
=
1
1
.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
1
2
.0
;
MTL_ENABLE_DEBUG_INFO
=
NO
;
MTL_ENABLE_DEBUG_INFO
=
NO
;
ONLY_ACTIVE_ARCH
=
NO
;
ONLY_ACTIVE_ARCH
=
NO
;
SDKROOT
=
iphoneos
;
SDKROOT
=
iphoneos
;
...
@@ -485,7 +492,7 @@
...
@@ -485,7 +492,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
AX549G5V4E
;
DEVELOPMENT_TEAM
=
26J2TYD7PU
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
INFOPLIST_FILE
=
Runner/Info.plist
;
INFOPLIST_FILE
=
Runner/Info.plist
;
INFOPLIST_KEY_CFBundleDisplayName
=
PhotoShoot
;
INFOPLIST_KEY_CFBundleDisplayName
=
PhotoShoot
;
...
@@ -495,7 +502,7 @@
...
@@ -495,7 +502,7 @@
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
1.1.2
;
MARKETING_VERSION
=
1.1.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
example
.photoshoot
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
sopt
.photoshoot
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Runner/Runner-Bridging-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Runner/Runner-Bridging-Header.h"
;
...
@@ -515,7 +522,7 @@
...
@@ -515,7 +522,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
AX549G5V4E
;
DEVELOPMENT_TEAM
=
26J2TYD7PU
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
INFOPLIST_FILE
=
Runner/Info.plist
;
INFOPLIST_FILE
=
Runner/Info.plist
;
INFOPLIST_KEY_CFBundleDisplayName
=
PhotoShoot
;
INFOPLIST_KEY_CFBundleDisplayName
=
PhotoShoot
;
...
@@ -525,7 +532,7 @@
...
@@ -525,7 +532,7 @@
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
1.1.2
;
MARKETING_VERSION
=
1.1.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
example
.photoshoot
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
sopt
.photoshoot
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Runner/Runner-Bridging-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Runner/Runner-Bridging-Header.h"
;
...
...
ios/Runner/Info.plist
View file @
1e1d27d5
...
@@ -26,12 +26,12 @@
...
@@ -26,12 +26,12 @@
<
string
>
$
(
FLUTTER_BUILD_NUMBER
)<
/string
>
<
string
>
$
(
FLUTTER_BUILD_NUMBER
)<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
k
e
y
>
NSPhotoLibraryUsageDescription
<
/k
e
y
>
<
string
>
This
library
access
to
the
photo
library
<
/string
>
<
k
e
y
>
NSCameraUsageDescription
<
/k
e
y
>
<
k
e
y
>
NSCameraUsageDescription
<
/k
e
y
>
<
string
>
Camera
access
required
<
/string
>
<
string
>
Camera
access
required
<
/string
>
<
k
e
y
>
NSMicrophoneUsageDescription
<
/k
e
y
>
<
k
e
y
>
NSMicrophoneUsageDescription
<
/k
e
y
>
<
string
>
Microphone
access
is
required
to
record
audio
for
video
content
creation.
<
/string
>
<
string
>
Microphone
access
is
required
to
record
audio
for
video
content
creation.
<
/string
>
<
k
e
y
>
NSPhotoLibraryUsageDescription
<
/k
e
y
>
<
string
>
This
library
access
to
the
photo
library
<
/string
>
<
k
e
y
>
UIApplicationSupportsIndirectInputEvents
<
/k
e
y
>
<
k
e
y
>
UIApplicationSupportsIndirectInputEvents
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
k
e
y
>
UILaunchStoryboardName
<
/k
e
y
>
<
k
e
y
>
UILaunchStoryboardName
<
/k
e
y
>
...
...
lib/Remote/RemoteData.dart
View file @
1e1d27d5
...
@@ -61,7 +61,7 @@ class RemoteData {
...
@@ -61,7 +61,7 @@ class RemoteData {
}
}
//Logout Request GET Method
//Logout Request GET Method
Future
<
String
>
Logout
(
String
?
id
)
async
{
Future
<
String
>
get
Logout
(
String
?
id
)
async
{
var
header
=
{
type:
appjson
};
var
header
=
{
type:
appjson
};
var
res
=
''
;
var
res
=
''
;
var
response
=
await
http
.
get
(
Uri
.
parse
(
'
$logout$id
'
),
headers:
header
);
var
response
=
await
http
.
get
(
Uri
.
parse
(
'
$logout$id
'
),
headers:
header
);
...
@@ -75,7 +75,7 @@ class RemoteData {
...
@@ -75,7 +75,7 @@ class RemoteData {
}
}
//Upload Images POST Method
//Upload Images POST Method
Future
<
Upload
?>
U
ploadImages
(
String
token
,
String
storeId
,
String
barcode
,
Future
<
Upload
?>
u
ploadImages
(
String
token
,
String
storeId
,
String
barcode
,
List
<
NamedFile
>
imageList
,
String
channels
,
String
model
)
async
{
List
<
NamedFile
>
imageList
,
String
channels
,
String
model
)
async
{
try
{
try
{
final
request
=
http
.
MultipartRequest
(
'POST'
,
Uri
.
parse
(
uploadimages
));
final
request
=
http
.
MultipartRequest
(
'POST'
,
Uri
.
parse
(
uploadimages
));
...
@@ -104,7 +104,9 @@ class RemoteData {
...
@@ -104,7 +104,9 @@ class RemoteData {
return
uploadFromJson
(
responseString
);
return
uploadFromJson
(
responseString
);
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
print
(
e
);
if
(
kDebugMode
)
{
print
(
e
);
}
}
}
return
null
;
return
null
;
}
}
...
...
lib/Screen/Home.dart
View file @
1e1d27d5
...
@@ -49,13 +49,6 @@ class _Home extends State<Home> {
...
@@ -49,13 +49,6 @@ class _Home extends State<Home> {
}
}
}
}
/*_openGallery() async{
var pickImage = await ImagePicker.pickImage(source: ImageSource.gallery);
this.setState({
imagefile = pickImage;
});
}*/
Future
<
void
>
startBarcodeScanStream
()
async
{
Future
<
void
>
startBarcodeScanStream
()
async
{
String
barcodeScanRes
;
String
barcodeScanRes
;
try
{
try
{
...
@@ -72,9 +65,9 @@ class _Home extends State<Home> {
...
@@ -72,9 +65,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 = '';
...
@@ -82,7 +75,7 @@ class _Home extends State<Home> {
...
@@ -82,7 +75,7 @@ class _Home extends State<Home> {
// } else {
// } else {
// //getUpdate(_barcodevalue.text);
// //getUpdate(_barcodevalue.text);
// }
// }
//
}
//}
});
});
}
on
PlatformException
{
}
on
PlatformException
{
barcodeScanRes
=
'Failed to get platform version.'
;
barcodeScanRes
=
'Failed to get platform version.'
;
...
@@ -119,9 +112,7 @@ class _Home extends State<Home> {
...
@@ -119,9 +112,7 @@ class _Home extends State<Home> {
onPressed:
()
{
onPressed:
()
{
startBarcodeScanStream
();
startBarcodeScanStream
();
},
},
icon:
Image
.
asset
(
'assets/images/ic_barcode.png'
)
icon:
Image
.
asset
(
'assets/images/ic_barcode.png'
)),
//icon: Icon(AssetImage("assets/images/ic_barcode.png")),
),
]),
]),
const
SizedBox
(
height:
20
),
const
SizedBox
(
height:
20
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceAround
,
children:
[
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceAround
,
children:
[
...
@@ -164,7 +155,6 @@ class _Home extends State<Home> {
...
@@ -164,7 +155,6 @@ class _Home extends State<Home> {
style:
ElevatedButton
.
styleFrom
(
style:
ElevatedButton
.
styleFrom
(
backgroundColor:
Colors
.
blue
,
backgroundColor:
Colors
.
blue
,
minimumSize:
const
Size
.
fromHeight
(
50
),
minimumSize:
const
Size
.
fromHeight
(
50
),
// NEW
),
),
onPressed:
()
async
{
onPressed:
()
async
{
if
(
imagefile
==
null
)
{
if
(
imagefile
==
null
)
{
...
@@ -172,7 +162,6 @@ class _Home extends State<Home> {
...
@@ -172,7 +162,6 @@ class _Home extends State<Home> {
.
showAlertDialog
(
context
);
.
showAlertDialog
(
context
);
}
else
{
}
else
{
isloading
=
true
;
isloading
=
true
;
bool
isInternetConnected
=
bool
isInternetConnected
=
await
Constants
.
checkInternetConnectivity
();
await
Constants
.
checkInternetConnectivity
();
if
(
isInternetConnected
)
{
if
(
isInternetConnected
)
{
...
...
lib/Screen/MultipleImages.dart
View file @
1e1d27d5
import
'dart:async'
;
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:convert'
;
import
'dart:io'
;
import
'dart:io'
;
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_cropper/image_cropper.dart'
;
import
'package:image_cropper/image_cropper.dart'
;
...
@@ -63,19 +64,19 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -63,19 +64,19 @@ class _MultipleImages extends State<MultipleImages> {
IOSUiSettings
(
IOSUiSettings
(
title:
'Crop Image'
,
title:
'Crop Image'
,
),
),
WebUiSettings
(
//
WebUiSettings(
context:
context
,
//
context: context,
presentStyle:
CropperPresentStyle
.
dialog
,
//
presentStyle: CropperPresentStyle.dialog,
boundary:
const
CroppieBoundary
(
//
boundary: const CroppieBoundary(
width:
520
,
//
width: 520,
height:
520
,
//
height: 520,
),
//
),
viewPort:
const
CroppieViewPort
(
//
viewPort: const CroppieViewPort(
width:
1080
,
height:
1920
,
type:
'square'
),
//
width: 1080, height: 1920, type: 'square'),
enableExif:
true
,
//
enableExif: true,
enableZoom:
true
,
//
enableZoom: true,
showZoomer:
true
,
//
showZoomer: true,
),
//
),
],
],
);
);
File
file
=
File
(
image
!.
path
);
File
file
=
File
(
image
!.
path
);
...
@@ -85,52 +86,54 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -85,52 +86,54 @@ class _MultipleImages extends State<MultipleImages> {
switch
(
index
)
{
switch
(
index
)
{
case
0
:
case
0
:
imagefile
=
File
(
cropped
!.
path
);
imagefile
=
File
(
cropped
!.
path
);
//imagefile!.renameSync(newFile.path);
if
(
kDebugMode
)
{
print
(
' Pallu Image:
$imagefile
'
);
print
(
' Pallu Image:
$imagefile
'
);
}
break
;
break
;
case
1
:
case
1
:
imagefile1
=
File
(
cropped
!.
path
);
imagefile1
=
File
(
cropped
!.
path
);
print
(
'Body Image :
$imagefile1
'
);
if
(
kDebugMode
)
{
print
(
'Body Image :
$imagefile1
'
);
}
break
;
break
;
case
2
:
case
2
:
imagefile2
=
File
(
cropped
!.
path
);
imagefile2
=
File
(
cropped
!.
path
);
print
(
'Body Image :
$imagefile2
'
);
if
(
kDebugMode
)
{
print
(
'Body Image :
$imagefile2
'
);
}
break
;
break
;
case
3
:
case
3
:
imagefile3
=
File
(
cropped
!.
path
);
imagefile3
=
File
(
cropped
!.
path
);
print
(
'Body Image :
$imagefile3
'
);
if
(
kDebugMode
)
{
print
(
'Body Image :
$imagefile3
'
);
}
break
;
break
;
case
4
:
case
4
:
imagefile4
=
File
(
cropped
!.
path
);
imagefile4
=
File
(
cropped
!.
path
);
print
(
'Body Image :
$imagefile4
'
);
if
(
kDebugMode
)
{
print
(
'Body Image :
$imagefile4
'
);
}
break
;
break
;
case
5
:
case
5
:
imagefile5
=
File
(
cropped
!.
path
);
imagefile5
=
File
(
cropped
!.
path
);
print
(
'Body Image :
$imagefile5
'
);
if
(
kDebugMode
)
{
print
(
'Body Image :
$imagefile5
'
);
}
break
;
break
;
}
}
});
});
}
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); */
}
}
}
}
}
}
/* _openGallery() async{
/*_openGallery() async{
var pickImage = await ImagePicker.pickImage(source: ImageSource.gallery);
var pickImage = await ImagePicker.pickImage(source: ImageSource.gallery);
this.setState({
this.setState({
imagefile = pickImage;
imagefile = pickImage;
});
});
}
}*/
*/
Future
<
void
>
startBarcodeScanStream
()
async
{
Future
<
void
>
startBarcodeScanStream
()
async
{
String
barcodeScanRes
;
String
barcodeScanRes
;
...
@@ -143,7 +146,9 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -143,7 +146,9 @@ class _MultipleImages extends State<MultipleImages> {
//scanAreaWidth: 300,
//scanAreaWidth: 300,
//scanAreaHeight: 200,
//scanAreaHeight: 200,
);
);
print
(
barcodeScanRes
);
if
(
kDebugMode
)
{
print
(
barcodeScanRes
);
}
setState
(()
{
setState
(()
{
if
(
barcodeScanRes
==
'-1'
)
{
if
(
barcodeScanRes
==
'-1'
)
{
_barcodevalue
.
text
=
''
;
_barcodevalue
.
text
=
''
;
...
@@ -159,14 +164,19 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -159,14 +164,19 @@ class _MultipleImages extends State<MultipleImages> {
});
});
}
on
PlatformException
{
}
on
PlatformException
{
barcodeScanRes
=
'Failed to get platform version.'
;
barcodeScanRes
=
'Failed to get platform version.'
;
if
(
kDebugMode
)
{
print
(
barcodeScanRes
);
}
}
}
}
}
signOut
()
async
{
signOut
()
async
{
SharedPreferences
prefs
=
await
SharedPreferences
.
getInstance
();
SharedPreferences
prefs
=
await
SharedPreferences
.
getInstance
();
var
storeId
=
prefs
.
getString
(
"store_Id"
);
var
storeId
=
prefs
.
getString
(
"store_Id"
);
print
(
'StoreId:
$storeId
'
);
if
(
kDebugMode
)
{
String
data
=
await
RemoteData
().
Logout
(
storeId
);
print
(
'StoreId:
$storeId
'
);
}
String
data
=
await
RemoteData
().
getLogout
(
storeId
);
var
res
=
jsonDecode
(
data
);
var
res
=
jsonDecode
(
data
);
if
(
res
[
'success'
]
==
1
)
{
if
(
res
[
'success'
]
==
1
)
{
Constants
.
saveLoginCredentials
(
''
,
''
,
''
,
''
,
false
);
Constants
.
saveLoginCredentials
(
''
,
''
,
''
,
''
,
false
);
...
@@ -512,7 +522,7 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -512,7 +522,7 @@ class _MultipleImages extends State<MultipleImages> {
await
SharedPreferences
.
getInstance
();
await
SharedPreferences
.
getInstance
();
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 =
// /* String uniqueDeviceId =
// (await PlatformDeviceId.getDeviceId)!;
// (await PlatformDeviceId.getDeviceId)!;
// if (Platform.isAndroid) {
// if (Platform.isAndroid) {
...
@@ -537,7 +547,7 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -537,7 +547,7 @@ class _MultipleImages extends State<MultipleImages> {
Upload
?
upload
;
Upload
?
upload
;
if
(
token
!=
null
)
{
if
(
token
!=
null
)
{
upload
=
await
RemoteData
().
U
ploadImages
(
upload
=
await
RemoteData
().
u
ploadImages
(
token
,
token
,
storeId
!,
storeId
!,
_barcodevalue
.
text
,
_barcodevalue
.
text
,
...
@@ -546,9 +556,9 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -546,9 +556,9 @@ class _MultipleImages extends State<MultipleImages> {
Model
,
Model
,
);
);
}
else
{}
}
else
{}
print
(
'Third call :
$upload
.success'
);
//
print('Third call : $upload.success');
print
(
upload
?.
success
);
//
print(upload?.success);
print
(
'Fifth call :
$upload
.msg'
);
//
print('Fifth call : $upload.msg');
if
(
upload
?.
success
==
1
)
{
if
(
upload
?.
success
==
1
)
{
if
(
imagefile
!=
null
)
{
if
(
imagefile
!=
null
)
{
imagefile
?.
delete
();
imagefile
?.
delete
();
...
@@ -667,28 +677,28 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -667,28 +677,28 @@ class _MultipleImages extends State<MultipleImages> {
bool
isInternetConnected
=
bool
isInternetConnected
=
await
Constants
.
checkInternetConnectivity
();
await
Constants
.
checkInternetConnectivity
();
if
(
isInternetConnected
)
{
if
(
isInternetConnected
)
{
SharedPreferences
_
prefs
=
SharedPreferences
prefs
=
await
SharedPreferences
.
getInstance
();
await
SharedPreferences
.
getInstance
();
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)!;
// /* String uniqueDeviceId = (await PlatformDeviceId.getDeviceId)!;
// if (Platform.isAndroid) {
// if (Platform.isAndroid) {
// final info = await DeviceInfoPlugin().iosInfo;
// final info = await DeviceInfoPlugin().iosInfo;
// Model = info.model!;
// Model = info.model!;
// print(info.model);
// print(info.model);
// //print(info.systemVersion);
// //print(info.systemVersion);
// }
// }
// if (Platform.isIOS) {
// if (Platform.isIOS) {
// final info = await DeviceInfoPlugin().iosInfo;
// final info = await DeviceInfoPlugin().iosInfo;
// print(info.utsname.machine); // "iPhone15,2"
// print(info.utsname.machine); // "iPhone15,2"
// print(info.utsname.version); // "iPhone 14 Pro"
// print(info.utsname.version); // "iPhone 14 Pro"
// }
// }
print
(
'Selected Shoot :
$shoot
'
);
if
(
kDebugMode
)
{
print
(
'Selected Shoot :
$shoot
'
);
}
showDialog
(
showDialog
(
context:
context
,
context:
context
,
...
@@ -699,21 +709,19 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -699,21 +709,19 @@ class _MultipleImages extends State<MultipleImages> {
Upload
?
upload
;
Upload
?
upload
;
if
(
token
!=
null
)
{
if
(
token
!=
null
)
{
upload
=
await
RemoteData
().
U
ploadImages
(
upload
=
await
RemoteData
().
u
ploadImages
(
token
,
token
,
storeId
!,
storeId
!,
_barcodevalue
.
text
,
_barcodevalue
.
text
,
images
,
images
,
shoot
!,
shoot
!,
M
odel
,
m
odel
,
);
);
}
else
{}
}
else
{}
print
(
'Third call :
$upload
.success'
);
// print('Third call : $upload.success');
// print(upload?.success);
print
(
upload
?.
success
);
// print('Fifth call : $upload.msg');
print
(
'Fifth call :
$upload
.msg'
);
if
(
upload
?.
success
==
1
)
{
if
(
upload
?.
success
==
1
)
{
if
(
imagefile
!=
null
)
{
if
(
imagefile
!=
null
)
{
...
@@ -765,8 +773,7 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -765,8 +773,7 @@ class _MultipleImages extends State<MultipleImages> {
width:
160.0
,
height:
200.0
);
width:
160.0
,
height:
200.0
);
_barcodevalue
.
clear
();
_barcodevalue
.
clear
();
images
.
clear
();
images
.
clear
();
/*imagefile = Image.asset('assets/images/camera.png',
/*imagefile = Image.asset('assets/images/camera.png', width: 180.0, height: 150.0) as File?; */
width: 180.0, height: 150.0) as File?; */
Constants
(
'Upload Images'
,
upload
!.
msg
)
Constants
(
'Upload Images'
,
upload
!.
msg
)
.
showAlertDialog
(
context
);
.
showAlertDialog
(
context
);
});
});
...
@@ -785,7 +792,6 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -785,7 +792,6 @@ class _MultipleImages extends State<MultipleImages> {
.
showAlertDialog
(
context
);
.
showAlertDialog
(
context
);
}
}
}
}
//_showMyDialog(context);
//_showMyDialog(context);
},
},
child:
const
Text
(
'Upload Images'
),
child:
const
Text
(
'Upload Images'
),
...
@@ -821,7 +827,6 @@ class _MultipleImages extends State<MultipleImages> {
...
@@ -821,7 +827,6 @@ class _MultipleImages extends State<MultipleImages> {
actions:
[
actions:
[
TextButton
(
TextButton
(
onPressed:
()
{
onPressed:
()
{
// Perform some action
Navigator
.
of
(
context
).
pop
();
Navigator
.
of
(
context
).
pop
();
},
},
child:
const
Text
(
'Ok'
),
child:
const
Text
(
'Ok'
),
...
...
lib/Screen/SignUp.dart
View file @
1e1d27d5
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:fluttertoast/fluttertoast.dart'
;
import
'package:fluttertoast/fluttertoast.dart'
;
import
'package:photoshoot/Remote/RemoteData.dart'
;
import
'package:photoshoot/Screen/Constants.dart'
;
import
'package:photoshoot/Screen/MultipleImages.dart'
;
import
'../Model/LoginResponse.dart'
;
import
'../Model/LoginResponse.dart'
;
import
'../Model/Store.dart'
;
import
'../Model/Store.dart'
;
import
'../Remote/RemoteData.dart'
;
import
'Constants.dart'
;
import
'MultipleImages.dart'
;
class
SignUp
extends
StatefulWidget
{
class
SignUp
extends
StatefulWidget
{
const
SignUp
({
super
.
key
});
const
SignUp
({
super
.
key
});
...
@@ -69,29 +69,27 @@ class _SignUpState extends State<SignUp> {
...
@@ -69,29 +69,27 @@ class _SignUpState extends State<SignUp> {
if
(
item
)
{
if
(
item
)
{
if
(
_focusNode
.
hasFocus
)
{
if
(
_focusNode
.
hasFocus
)
{
bool
isInternetConnected
=
bool
isInternetConnected
=
await
Constants
.
checkInternetConnectivity
();
await
Constants
.
checkInternetConnectivity
();
if
(
isInternetConnected
)
{
if
(
isInternetConnected
)
{
// Internet connectivity is available
showDialog
(
showDialog
(
context:
context
,
context:
context
,
builder:
(
context
)
{
builder:
(
context
)
{
return
const
Center
(
child:
CircularProgressIndicator
());
return
const
Center
(
child:
CircularProgressIndicator
());
});
}
item
=
false
;
);
storesList
=
await
RemoteData
().
getStoreList
(
_email
.
text
);
item
=
false
;
setState
(()
{
storesList
=
await
RemoteData
().
getStoreList
(
_email
.
text
);
Navigator
.
pop
(
context
);
setState
(()
{
storesList
=
storesList
;
Navigator
.
pop
(
context
);
});
storesList
=
storesList
;
});
}
else
{
}
else
{
Constants
(
'LoginPage'
,
'Check your network connection'
)
Constants
(
'LoginPage'
,
'Check your network connection'
)
.
showAlertDialog
(
context
);
.
showAlertDialog
(
context
);
}
}
}
else
{
}
else
{
//_focusNode.unfocus();
//_focusNode.unfocus();
}
}
//print(storesList?.length);
//print(storesList?[0].storeName);
}
}
}
else
{
}
else
{
_focusNode
.
unfocus
();
_focusNode
.
unfocus
();
...
@@ -105,11 +103,8 @@ class _SignUpState extends State<SignUp> {
...
@@ -105,11 +103,8 @@ class _SignUpState extends State<SignUp> {
textColor:
Colors
.
white
,
textColor:
Colors
.
white
,
fontSize:
16.0
);
fontSize:
16.0
);
}
}
// The cursor is focused on the TextField
// Perform your action here
});
});
}
}
final
FocusNode
_focusNode
=
FocusNode
();
final
FocusNode
_focusNode
=
FocusNode
();
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment