|
|
|
@ -67,23 +67,25 @@ class _EmployeeDetailsState extends State<EmployeeDetails> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
extendBody: true,
|
|
|
|
extendBody: true,
|
|
|
|
backgroundColor: MyColors.lightGreyEFColor,
|
|
|
|
backgroundColor: MyColors.lightGreyEFColor,
|
|
|
|
body: Stack(children: [
|
|
|
|
body: Stack(
|
|
|
|
getEmployeeSubordinates!.eMPLOYEEIMAGE != null ?
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
getEmployeeSubordinates!.eMPLOYEEIMAGE != null
|
|
|
|
height: 200,
|
|
|
|
? Container(
|
|
|
|
margin: EdgeInsets.only(top: 30),
|
|
|
|
height: 200,
|
|
|
|
decoration: BoxDecoration(image: DecorationImage(image: MemoryImage(Utils.dataFromBase64String(getEmployeeSubordinates!.eMPLOYEEIMAGE!)), fit: BoxFit.cover)),
|
|
|
|
margin: EdgeInsets.only(top: 30),
|
|
|
|
child: new BackdropFilter(
|
|
|
|
decoration: BoxDecoration(image: DecorationImage(image: MemoryImage(Utils.dataFromBase64String(getEmployeeSubordinates!.eMPLOYEEIMAGE!)), fit: BoxFit.cover)),
|
|
|
|
filter: new ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
|
|
|
|
child: new BackdropFilter(
|
|
|
|
child: new Container(
|
|
|
|
filter: new ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
|
|
|
|
decoration: new BoxDecoration(color: Colors.white.withOpacity(0.0)),
|
|
|
|
child: new Container(
|
|
|
|
),
|
|
|
|
decoration: new BoxDecoration(color: Colors.white.withOpacity(0.0)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
) : Container(
|
|
|
|
),
|
|
|
|
decoration: BoxDecoration(color: Colors.white.withOpacity(0.0)),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
: Container(
|
|
|
|
|
|
|
|
decoration: BoxDecoration(color: Colors.white.withOpacity(0.0)),
|
|
|
|
|
|
|
|
),
|
|
|
|
SingleChildScrollView(
|
|
|
|
SingleChildScrollView(
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -95,15 +97,13 @@ class _EmployeeDetailsState extends State<EmployeeDetails> {
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
IconButton(
|
|
|
|
CircleAvatar(
|
|
|
|
onPressed: () {
|
|
|
|
radius: 18,
|
|
|
|
Navigator.pop(context);
|
|
|
|
backgroundColor: Colors.black.withOpacity(.21),
|
|
|
|
},
|
|
|
|
child: const Icon(Icons.arrow_back_ios_rounded, color: Colors.white, size: 18).paddingOnly(right: 4),
|
|
|
|
icon: Icon(
|
|
|
|
).onPress(() {
|
|
|
|
Icons.arrow_back_ios,
|
|
|
|
Navigator.pop(context);
|
|
|
|
color: Colors.white,
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -111,7 +111,9 @@ class _EmployeeDetailsState extends State<EmployeeDetails> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
]));
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget myTeamInfo() {
|
|
|
|
Widget myTeamInfo() {
|
|
|
|
@ -202,16 +204,8 @@ class _EmployeeDetailsState extends State<EmployeeDetails> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget ProfileImage() => getEmployeeSubordinates?.eMPLOYEEIMAGE == null
|
|
|
|
Widget ProfileImage() => getEmployeeSubordinates?.eMPLOYEEIMAGE == null
|
|
|
|
? SvgPicture.asset(
|
|
|
|
? SvgPicture.asset("assets/images/user.svg", height: 68, width: 68)
|
|
|
|
"assets/images/user.svg",
|
|
|
|
: CircleAvatar(radius: 68, backgroundImage: MemoryImage(Utils.getPostBytes(getEmployeeSubordinates?.eMPLOYEEIMAGE)), backgroundColor: Colors.black);
|
|
|
|
height: 68,
|
|
|
|
|
|
|
|
width: 68,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
: CircleAvatar(
|
|
|
|
|
|
|
|
radius: 68,
|
|
|
|
|
|
|
|
backgroundImage: MemoryImage(Utils.getPostBytes(getEmployeeSubordinates?.eMPLOYEEIMAGE)),
|
|
|
|
|
|
|
|
backgroundColor: Colors.black,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setMenu() {
|
|
|
|
void setMenu() {
|
|
|
|
menu = [
|
|
|
|
menu = [
|
|
|
|
@ -256,16 +250,17 @@ class _EmployeeDetailsState extends State<EmployeeDetails> {
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(LocaleKeys.addFavoriteList).tr(namedArgs: {'name': '${getEmployeeSubordinates!.eMPLOYEENAME}'}),
|
|
|
|
Text(LocaleKeys.addFavoriteList).tr(namedArgs: {'name': '${getEmployeeSubordinates!.eMPLOYEENAME}'}),
|
|
|
|
getEmployeeSubordinates!.eMPLOYEEIMAGE == null
|
|
|
|
getEmployeeSubordinates!.eMPLOYEEIMAGE == null
|
|
|
|
? SvgPicture.asset(
|
|
|
|
? SvgPicture.asset(
|
|
|
|
"assets/images/user.svg",
|
|
|
|
"assets/images/user.svg",
|
|
|
|
height: 68,
|
|
|
|
height: 68,
|
|
|
|
width: 68,)
|
|
|
|
width: 68,
|
|
|
|
: CircleAvatar(
|
|
|
|
)
|
|
|
|
radius: 68,
|
|
|
|
: CircleAvatar(
|
|
|
|
backgroundImage: MemoryImage(Utils.dataFromBase64String(getEmployeeSubordinates!.eMPLOYEEIMAGE!)),
|
|
|
|
radius: 68,
|
|
|
|
backgroundColor: Colors.black,
|
|
|
|
backgroundImage: MemoryImage(Utils.dataFromBase64String(getEmployeeSubordinates!.eMPLOYEEIMAGE!)),
|
|
|
|
),
|
|
|
|
backgroundColor: Colors.black,
|
|
|
|
|
|
|
|
),
|
|
|
|
// Image.memory(
|
|
|
|
// Image.memory(
|
|
|
|
// Utils.getPostBytes(
|
|
|
|
// Utils.getPostBytes(
|
|
|
|
// getEmployeeSubordinates!.eMPLOYEEIMAGE ?? "",
|
|
|
|
// getEmployeeSubordinates!.eMPLOYEEIMAGE ?? "",
|
|
|
|
|