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
ec8a1705
Commit
ec8a1705
authored
Nov 19, 2025
by
Sai Srinivas
Browse files
image issue solved
parent
b5da9426
Changes
5
Hide whitespace changes
Inline
Side-by-side
lib/Models/HelpAndComplaintModels/allServiceListResponse.dart
View file @
ec8a1705
class
allServiceListResponse
{
String
?
error
;
TechDetails
?
techDetails
;
List
<
TechDetails
>
?
techDetails
;
List
<
AllServiceList
>?
allServiceList
;
String
?
message
;
...
...
@@ -9,9 +9,12 @@ class allServiceListResponse {
allServiceListResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
techDetails
=
json
[
'tech_details'
]
!=
null
?
new
TechDetails
.
fromJson
(
json
[
'tech_details'
])
:
null
;
if
(
json
[
'tech_details'
]
!=
null
)
{
techDetails
=
<
TechDetails
>[];
json
[
'tech_details'
].
forEach
((
v
)
{
techDetails
!.
add
(
new
TechDetails
.
fromJson
(
v
));
});
}
if
(
json
[
'all_service_list'
]
!=
null
)
{
allServiceList
=
<
AllServiceList
>[];
json
[
'all_service_list'
].
forEach
((
v
)
{
...
...
@@ -25,7 +28,7 @@ class allServiceListResponse {
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'error'
]
=
this
.
error
;
if
(
this
.
techDetails
!=
null
)
{
data
[
'tech_details'
]
=
this
.
techDetails
!.
toJson
();
data
[
'tech_details'
]
=
this
.
techDetails
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
allServiceList
!=
null
)
{
data
[
'all_service_list'
]
=
...
...
@@ -90,7 +93,7 @@ class AllServiceList {
String
?
inOrOutTime
;
String
?
runningHrs
;
String
?
fsrExt
;
String
?
f
srF
ilePath
;
String
?
filePath
;
String
?
fsrNo
;
AllServiceList
(
...
...
@@ -106,7 +109,7 @@ class AllServiceList {
this
.
inOrOutTime
,
this
.
runningHrs
,
this
.
fsrExt
,
this
.
f
srF
ilePath
,
this
.
filePath
,
this
.
fsrNo
});
AllServiceList
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
...
...
@@ -122,7 +125,7 @@ class AllServiceList {
inOrOutTime
=
json
[
'in_or_out_time'
];
runningHrs
=
json
[
'running_hrs'
];
fsrExt
=
json
[
'fsr_ext'
];
f
srF
ilePath
=
json
[
'
fsr_
file_path'
];
filePath
=
json
[
'file_path'
];
fsrNo
=
json
[
'fsr_no'
];
}
...
...
@@ -140,7 +143,7 @@ class AllServiceList {
data
[
'in_or_out_time'
]
=
this
.
inOrOutTime
;
data
[
'running_hrs'
]
=
this
.
runningHrs
;
data
[
'fsr_ext'
]
=
this
.
fsrExt
;
data
[
'
fsr_
file_path'
]
=
this
.
f
srF
ilePath
;
data
[
'file_path'
]
=
this
.
filePath
;
data
[
'fsr_no'
]
=
this
.
fsrNo
;
return
data
;
}
...
...
lib/Models/HelpAndComplaintModels/complaintDetailsResponse.dart
View file @
ec8a1705
...
...
@@ -211,7 +211,7 @@ class ServiceDetails {
data
[
'in_or_out_time'
]
=
this
.
inOrOutTime
;
data
[
'running_hrs'
]
=
this
.
runningHrs
;
data
[
'fsr_ext'
]
=
this
.
fsrExt
;
data
[
'
fsr_
file_path'
]
=
this
.
fsrFilePath
;
data
[
'file_path'
]
=
this
.
fsrFilePath
;
data
[
'fsr_no'
]
=
this
.
fsrNo
;
return
data
;
}
...
...
lib/Screens/HelpAndComplaintScreens/ComplaintDetailsScreen.dart
View file @
ec8a1705
...
...
@@ -770,30 +770,18 @@ class _ComplaintDetailsScreenState extends State<ComplaintDetailsScreen> {
Expanded
(
child:
InkResponse
(
onTap:
serviceHeadings
[
i
]
==
"FSR File"
&&
(
serviceData
?.
fsrFilePath
!=
null
)
serviceHeadings
[
i
]
==
"FSR File"
&&
(
serviceData
?.
fsrFilePath
!=
null
)
?
()
async
{
await
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
,
)
=>
Fileviewer
(
fileName:
serviceData
?.
fsrExt
??
"-"
,
fileUrl:
serviceData
?.
fsrFilePath
??
"-"
,
builder:
(
context
,)
=>
Fileviewer
(
fileName:
serviceData
?.
fsrExt
??
"-"
,
fileUrl:
serviceData
?.
fsrFilePath
??
"-"
,
),
),
);
}
:
null
,
child:
Text
(
...
...
lib/Screens/HelpAndComplaintScreens/serviceListScreen.dart
View file @
ec8a1705
...
...
@@ -235,17 +235,9 @@ class _serviceListScreenState extends State<serviceListScreen> {
context
,
MaterialPageRoute
(
builder:
(
context
,
)
=>
Fileviewer
(
fileName:
data
[
j
]
?.
fsrExt
??
"-"
,
fileUrl:
data
[
j
]
?.
fsrFilePath
??
"-"
,
(
context
,)
=>
Fileviewer
(
fileName:
data
[
j
]?.
fsrExt
??
"-"
,
fileUrl:
data
[
j
]?.
filePath
??
"-"
,
),
),
);
...
...
lib/Utility/CustomSnackbar.dart
View file @
ec8a1705
// utils/custom_snackbar.dart
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_svg/svg.dart'
;
import
'AppColors.dart'
;
class
CustomSnackBar
{
static
void
show
({
...
...
@@ -345,4 +348,45 @@ class CustomSnackBar {
enableHaptic:
enableHaptic
,
);
}
}
PreferredSizeWidget
appbarNew
(
BuildContext
context
,
title
,
int
color
)
{
return
AppBar
(
backgroundColor:
Color
(
color
),
automaticallyImplyLeading:
false
,
title:
SizedBox
(
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
InkResponse
(
onTap:
()
=>
Navigator
.
pop
(
context
,
true
),
child:
SvgPicture
.
asset
(
"assets/svg/appbar_back_button.svg"
,
height:
25
,
),
),
SizedBox
(
width:
10
),
InkResponse
(
onTap:
()
=>
Navigator
.
pop
(
context
,
true
),
child:
Text
(
title
,
style:
TextStyle
(
fontSize:
16
,
height:
1.1
,
fontFamily:
"JakartaSemiBold"
,
color:
AppColors
.
subtitleText
,
),
),
),
],
),
),
// shape: RoundedRectangleBorder(
// borderRadius: BorderRadius.vertical(
// bottom: Radius.circular(30), // Adjust the radius as needed
// ),
// ),
);
}
\ No newline at end of file
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