diff --git a/lib/ui/attendance/monthly_attendance_screen.dart b/lib/ui/attendance/monthly_attendance_screen.dart index 39f33a4..439a5f4 100644 --- a/lib/ui/attendance/monthly_attendance_screen.dart +++ b/lib/ui/attendance/monthly_attendance_screen.dart @@ -116,6 +116,8 @@ class _MonthlyAttendanceScreenState extends State { initialDate: formattedDate, firstDate: DateTime(searchYear - 2), lastDate: DateTime.now(), + confirmText: Text(LocaleKeys.confirm.tr()), + cancelText: Text(LocaleKeys.cancel.tr()), ).then((selectedDate) { if (selectedDate != null) { searchMonth = getMonth(selectedDate.month); diff --git a/lib/ui/my_team/employee_details.dart b/lib/ui/my_team/employee_details.dart index e33dad8..d0e167d 100644 --- a/lib/ui/my_team/employee_details.dart +++ b/lib/ui/my_team/employee_details.dart @@ -70,6 +70,7 @@ class _EmployeeDetailsState extends State { extendBody: true, backgroundColor: MyColors.lightGreyEFColor, body: Stack(children: [ + getEmployeeSubordinates!.eMPLOYEEIMAGE != null ? Container( height: 200, margin: EdgeInsets.only(top: 30), @@ -80,6 +81,8 @@ class _EmployeeDetailsState extends State { decoration: new BoxDecoration(color: Colors.white.withOpacity(0.0)), ), ), + ) : Container( + decoration: BoxDecoration(color: Colors.white.withOpacity(0.0)), ), SingleChildScrollView( scrollDirection: Axis.vertical, diff --git a/lib/ui/my_team/view_attendance.dart b/lib/ui/my_team/view_attendance.dart index 5d55ee8..c77b1b4 100644 --- a/lib/ui/my_team/view_attendance.dart +++ b/lib/ui/my_team/view_attendance.dart @@ -169,6 +169,8 @@ class _ViewAttendanceState extends State { initialDate: formattedDate, firstDate: DateTime(searchYear - 2), lastDate: DateTime.now(), + confirmText: Text(LocaleKeys.confirm.tr()), + cancelText: Text(LocaleKeys.cancel.tr()), ).then( (selectedDate) { if (selectedDate != null) { diff --git a/lib/ui/profile/profile_screen.dart b/lib/ui/profile/profile_screen.dart index 690633b..c071d3f 100644 --- a/lib/ui/profile/profile_screen.dart +++ b/lib/ui/profile/profile_screen.dart @@ -44,23 +44,26 @@ class _ProfileScreenState extends State { backgroundColor: const Color(0xffefefef), body: Stack( children: [ - Container( - height: 300, - margin: const EdgeInsets.only(top: 50), - decoration: BoxDecoration( + memberInformationList!.eMPLOYEEIMAGE != null + ? Container( + height: 300, + margin: const EdgeInsets.only(top: 50), + decoration: BoxDecoration( image: DecorationImage( image: MemoryImage( Utils.dataFromBase64String(memberInformationList.eMPLOYEEIMAGE!), ), fit: BoxFit.cover), ), - child: BackdropFilter( + child: BackdropFilter( filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0), child: Container( color: Colors.white.withOpacity(0.0), ), ), - ), + ): Container( + decoration: BoxDecoration(color: Colors.white.withOpacity(0.0)), + ), SingleChildScrollView( scrollDirection: Axis.vertical, child: Column(