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_ERP_2025
Commits
b6cdf904
Commit
b6cdf904
authored
Sep 10, 2025
by
Sai Srinivas
Browse files
HRM
parent
2d33e69d
Changes
3
Show whitespace changes
Inline
Side-by-side
assets/svg/hrm/pie-chart.svg
View file @
b6cdf904
<svg
viewBox=
"0 0 512 512"
xmlns=
"http://www.w3.org/2000/svg"
><g
id=
"Layer_6"
data-name=
"Layer 6"
><path
d=
"m207.72 34.37c-116.82 13.63-207.5 112.85-207.72 233.28-.22 127.67 105.81 234.77 233.48 235.74a234.38 234.38 0 0 0 151.08-53.39 24.62 24.62 0 0 0 1.38-36.73l-143.08-137.91a24.67 24.67 0 0 1 -7.54-17.75v-198.76a24.68 24.68 0 0 0 -27.6-24.48z"
fill=
"#4193d2"
/><path
d=
"m463.2 386a234.24 234.24 0 0 0 48.8-143.49c0-120.71-90.89-220.2-208-233.75a24.61 24.61 0 0 0 -27.34 24.51v198.85a24.66 24.66 0 0 0 7.43 17.64l142.36 138.83a24.66 24.66 0 0 0 36.75-2.59z"
fill=
"#dd4247"
/><path
d=
"m302.62 333-59.76-57.61a24.67 24.67 0 0 1 -7.54-17.75v-198.79a24.68 24.68 0 0 0 -27.6-24.48c-116.82 13.63-207.5 112.85-207.72 233.28a231.56 231.56 0 0 0 32.93 119.08 278.59 278.59 0 0 0 269.69-53.73z"
fill=
"#48a4df"
/><path
d=
"m276.69 33.27v198.85a24.66 24.66 0 0 0 7.43 17.64l51.09 49.83a278.5 278.5 0 0 0 48.79-266.59 233.81 233.81 0 0 0 -80-24.24 24.62 24.62 0 0 0 -27.31 24.51z"
fill=
"#e55353"
/></g></svg>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"40"
height=
"40"
viewBox=
"0 0 21 21"
fill=
"none"
>
\ No newline at end of file
<g
clip-path=
"url(#clip0_707_4110)"
>
<path
d=
"M20.3655 5.32629C19.8142 3.29725 17.704 1.18658 15.6745 0.635332C14.4301 0.325254 12.7632 0.00574219 10.5 0C8.23758 0.00574219 6.5707 0.325254 5.32629 0.635332C3.29725 1.18658 1.18658 3.29684 0.635332 5.32629C0.325254 6.57029 0.00574219 8.23758 0 10.5C0.00533203 12.7628 0.324844 14.4297 0.634922 15.6741C1.18617 17.7036 3.29684 19.8138 5.32588 20.3651C6.57029 20.6752 8.23799 20.9947 10.5 21C12.7624 20.9947 14.4297 20.6752 15.6741 20.3651C17.7036 19.8138 19.8138 17.7036 20.3651 15.6741C20.6752 14.4297 20.9947 12.762 21.0004 10.5C20.9951 8.23758 20.6756 6.5707 20.3655 5.32629Z"
fill=
"#DFF8FF"
/>
<path
d=
"M9.18316 4.45403C7.62422 4.63849 6.1869 5.38778 5.14302 6.56022C4.09913 7.73267 3.52105 9.24698 3.51808 10.8168C3.51152 14.2994 6.40394 17.2201 9.88493 17.2468C11.3874 17.2604 12.8468 16.7447 14.007 15.7899C14.08 15.7296 14.1393 15.6545 14.1812 15.5696C14.2231 15.4847 14.2466 15.3919 14.2501 15.2973C14.2536 15.2027 14.2371 15.1084 14.2017 15.0206C14.1662 14.9328 14.1126 14.8535 14.0443 14.7879L10.1421 11.0256C10.0771 10.9628 10.0254 10.8875 9.99018 10.8043C9.95495 10.721 9.93686 10.6315 9.93702 10.5412V5.12177C9.93689 5.02662 9.9166 4.93258 9.87749 4.84584C9.83837 4.7591 9.78132 4.68164 9.71009 4.61855C9.63887 4.55546 9.55508 4.50818 9.46425 4.47982C9.37343 4.45146 9.27762 4.44268 9.18316 4.45403Z"
fill=
"url(#paint0_linear_707_4110)"
/>
<path
d=
"M16.1515 14.0468C16.8437 13.1472 17.2849 12.0801 17.4302 10.9544C17.5755 9.82866 17.4196 8.68454 16.9786 7.63868C16.5375 6.59281 15.827 5.68262 14.9194 5.0009C14.0119 4.31917 12.9398 3.89031 11.8125 3.75802C11.7185 3.74757 11.6234 3.75708 11.5333 3.78592C11.4433 3.81477 11.3603 3.8623 11.2899 3.9254C11.2195 3.98851 11.1632 4.06577 11.1246 4.15213C11.0861 4.23849 11.0663 4.33201 11.0664 4.42658V9.85007C11.0664 9.93983 11.0843 10.0287 11.1192 10.1114C11.1541 10.1941 11.2051 10.269 11.2694 10.3316L15.1512 14.1182C15.2191 14.1841 15.3002 14.2349 15.3892 14.2673C15.4781 14.2997 15.5729 14.313 15.6673 14.3062C15.7617 14.2995 15.8537 14.2729 15.9371 14.2282C16.0205 14.1835 16.0936 14.1217 16.1515 14.0468Z"
fill=
"url(#paint1_linear_707_4110)"
/>
</g>
<defs>
<linearGradient
id=
"paint0_linear_707_4110"
x1=
"13.6912"
y1=
"16.1119"
x2=
"4.63371"
y2=
"7.05442"
gradientUnits=
"userSpaceOnUse"
>
<stop
stop-color=
"#1EB4EB"
/>
<stop
offset=
"0.54"
stop-color=
"#1EB4EB"
/>
<stop
offset=
"1"
stop-color=
"#92F4FE"
/>
</linearGradient>
<linearGradient
id=
"paint1_linear_707_4110"
x1=
"17.8389"
y1=
"12.3676"
x2=
"10.3417"
y2=
"4.86995"
gradientUnits=
"userSpaceOnUse"
>
<stop
stop-color=
"#EF3739"
/>
<stop
offset=
"0.54"
stop-color=
"#EF3739"
/>
<stop
offset=
"1"
stop-color=
"#FF8C8B"
/>
</linearGradient>
<clipPath
id=
"clip0_707_4110"
>
<rect
width=
"21"
height=
"21"
fill=
"white"
/>
</clipPath>
</defs>
</svg>
\ No newline at end of file
lib/screens/HomeScreen.dart
View file @
b6cdf904
...
@@ -1431,6 +1431,9 @@ class _MyHomePageState extends State<MyHomePage> {
...
@@ -1431,6 +1431,9 @@ class _MyHomePageState extends State<MyHomePage> {
child:
SvgPicture
.
asset
(
child:
SvgPicture
.
asset
(
coreFilteredItems
[
ci
][
'icon'
]
??
coreFilteredItems
[
ci
][
'icon'
]
??
"-"
,
"-"
,
height:
40
,
width:
40
,
),
),
),
),
],
],
...
...
lib/screens/hrm/TourExpensesDetailsScreen.dart
View file @
b6cdf904
...
@@ -372,9 +372,9 @@ class _TourExpensesDetailsScreenState extends State<TourExpensesDetailsScreen>{
...
@@ -372,9 +372,9 @@ class _TourExpensesDetailsScreenState extends State<TourExpensesDetailsScreen>{
children:
[
children:
[
CircleAvatar
(
CircleAvatar
(
radius:
22.5
,
radius:
22.5
,
backgroundColor:
const
Color
(
0x
ff
FFF3E0
),
backgroundColor:
const
Color
(
0x
00
FFF3E0
),
child:
SvgPicture
.
asset
(
child:
SvgPicture
.
asset
(
"assets/svg/h
rm/travel
_ic.svg"
,
"assets/svg/h
ome/home_inventory
_ic.svg"
,
),
),
),
),
const
SizedBox
(
width:
8
),
const
SizedBox
(
width:
8
),
...
@@ -451,7 +451,9 @@ class _TourExpensesDetailsScreenState extends State<TourExpensesDetailsScreen>{
...
@@ -451,7 +451,9 @@ class _TourExpensesDetailsScreenState extends State<TourExpensesDetailsScreen>{
radius:
20
,
radius:
20
,
backgroundColor:
const
Color
(
0xffFFF3E0
),
backgroundColor:
const
Color
(
0xffFFF3E0
),
child:
SvgPicture
.
asset
(
child:
SvgPicture
.
asset
(
"assets/svg/hrm/travel_ic.svg"
,
_getTravelIcon
(
travelType
),
width:
28
,
height:
28
,
),
),
),
),
const
SizedBox
(
width:
8
),
const
SizedBox
(
width:
8
),
...
@@ -875,6 +877,27 @@ class _TourExpensesDetailsScreenState extends State<TourExpensesDetailsScreen>{
...
@@ -875,6 +877,27 @@ class _TourExpensesDetailsScreenState extends State<TourExpensesDetailsScreen>{
},
},
);
);
}
}
///travel icons
String
_getTravelIcon
(
String
?
travelType
)
{
switch
(
travelType
?.
toLowerCase
())
{
case
"flight"
:
return
"assets/svg/hrm/airplane_ic.svg"
;
case
"train"
:
return
"assets/svg/hrm/train_ic.svg"
;
case
"bus"
:
return
"assets/svg/hrm/bus_ic.svg"
;
case
"car"
:
return
"assets/svg/hrm/car_ic.svg"
;
case
"auto"
:
return
"assets/svg/hrm/truck_ic.svg"
;
case
"bike"
:
return
"assets/svg/hrm/motorcycle_ic.svg"
;
default
:
return
"assets/svg/hrm/travel_ic.svg"
;
// fallback
}
}
/// Avatar color generator
/// Avatar color generator
Color
_getStatusBgColor
(
value
)
{
Color
_getStatusBgColor
(
value
)
{
var
color
=
AppColors
.
approved_bg_color
;
var
color
=
AppColors
.
approved_bg_color
;
...
...
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