Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sai Srinivas
gen_services
Commits
b5da9426
Commit
b5da9426
authored
Nov 19, 2025
by
Sai Srinivas
Browse files
image issue
parent
4342d85d
Changes
4
Hide whitespace changes
Inline
Side-by-side
devtools_options.yaml
0 → 100644
View file @
b5da9426
description
:
This file stores settings for Dart & Flutter DevTools.
documentation
:
https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
extensions
:
lib/Models/HelpAndComplaintModels/complaintDetailsResponse.dart
View file @
b5da9426
...
...
@@ -190,7 +190,7 @@ class ServiceDetails {
inOrOutTime
=
json
[
'in_or_out_time'
];
runningHrs
=
json
[
'running_hrs'
];
fsrExt
=
json
[
'fsr_ext'
];
fsrFilePath
=
json
[
'
fsr_
file_path'
];
fsrFilePath
=
json
[
'file_path'
];
fsrNo
=
json
[
'fsr_no'
];
}
...
...
lib/Screens/FileViewer.dart
View file @
b5da9426
...
...
@@ -45,7 +45,7 @@ class _FileviewerState extends State<Fileviewer> {
PhotoViewScaleStateController
_scaleStateController
=
PhotoViewScaleStateController
();
String
getFileExtension
(
String
fileName
)
{
print
(
widget
.
fileUrl
);
print
(
"file URL:
${
widget.fileUrl
}
"
);
print
(
fileName
);
return
fileName
.
split
(
'.'
).
last
.
toLowerCase
();
}
...
...
@@ -178,8 +178,49 @@ class _FileviewerState extends State<Fileviewer> {
}
Widget
_buildImageViewer
()
{
print
(
"type image"
);
print
(
"
${widget.fileUrl}
"
);
return
PhotoView
(
imageProvider:
NetworkImage
(
widget
.
fileUrl
),
loadingBuilder:
(
context
,
event
)
=>
Center
(
child:
SizedBox
(
width:
40
,
height:
40
,
child:
CircularProgressIndicator
(
value:
event
==
null
?
0
:
event
.
cumulativeBytesLoaded
/
(
event
.
expectedTotalBytes
??
1
),
),
),
),
errorBuilder:
(
context
,
error
,
stackTrace
)
=>
Center
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
Icon
(
Icons
.
error_outline
,
color:
Colors
.
red
,
size:
50
),
SizedBox
(
height:
10
),
Text
(
'Failed to load image'
,
style:
TextStyle
(
fontSize:
16
,
color:
Colors
.
grey
),
),
],
),
),
backgroundDecoration:
BoxDecoration
(
color:
Colors
.
white
),
minScale:
PhotoViewComputedScale
.
contained
*
0.5
,
maxScale:
PhotoViewComputedScale
.
covered
*
4.0
,
initialScale:
PhotoViewComputedScale
.
contained
,
basePosition:
Alignment
.
center
,
scaleStateController:
_scaleStateController
,
controller:
_photoViewController
,
enableRotation:
true
,
gestureDetectorBehavior:
HitTestBehavior
.
deferToChild
,
filterQuality:
FilterQuality
.
high
,
);
}
Widget
_buildImageViewer11
()
{
return
PhotoView
(
imageProvider:
CachedNetworkImageProvider
(
widget
.
fileUrl
),
loadingBuilder:
(
context
,
event
)
=>
Center
(
child:
SizedBox
(
...
...
pubspec.lock
View file @
b5da9426
...
...
@@ -189,10 +189,10 @@ packages:
dependency: transitive
description:
name: fake_async
sha256: "
5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44
"
sha256: "
6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc
"
url: "https://pub.dev"
source: hosted
version: "1.3.
3
"
version: "1.3.
2
"
ffi:
dependency: transitive
description:
...
...
@@ -580,26 +580,26 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256:
"33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
sha256:
c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
url: "https://pub.dev"
source: hosted
version: "1
1
.0.
2
"
version: "1
0
.0.
8
"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256:
"1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
sha256:
f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
url: "https://pub.dev"
source: hosted
version: "3.0.
10
"
version: "3.0.
9
"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: "
8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1
"
sha256: "
6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3
"
url: "https://pub.dev"
source: hosted
version: "3.0.
2
"
version: "3.0.
1
"
lints:
dependency: transitive
description:
...
...
@@ -1121,10 +1121,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256:
"522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
sha256:
fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
url: "https://pub.dev"
source: hosted
version: "0.7.
6
"
version: "0.7.
4
"
timezone:
dependency: transitive
description:
...
...
@@ -1241,10 +1241,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256:
d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
sha256:
"80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
source: hosted
version: "2.
2.0
"
version: "2.
1.4
"
vm_service:
dependency: transitive
description:
...
...
@@ -1294,5 +1294,5 @@ packages:
source: hosted
version: "6.5.0"
sdks:
dart: ">=3.
8.0-0
<4.0.0"
dart: ">=3.
7.2
<4.0.0"
flutter: ">=3.29.0"
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