Commit 8434da32 authored by Dio Maulana's avatar Dio Maulana

shadow dihilangin

parent 14275ca8
......@@ -153,13 +153,13 @@ class _BodyWidgetState extends State<BodyWidget> {
color: Colors.grey,
),
color: ColorManager.backgroundColor,
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.3),
blurRadius: 2,
offset: const Offset(5, 5),
),
],
// boxShadow: [
// BoxShadow(
// color: Colors.grey.withOpacity(0.3),
// blurRadius: 2,
// offset: const Offset(5, 5),
// ),
// ],
),
child: Container(
width: double.infinity,
......@@ -363,18 +363,18 @@ class _BodyWidgetState extends State<BodyWidget> {
} else {
ProfileModel profileUser =
apiResponse.data as ProfileModel;
if (profileUser.attendanceOut) {
modalDialogGlobal(
context: context,
size: MediaQuery.of(context).size,
title: "Gagal",
contentBody: Strings.alreadyOut,
buttonText: "Ok",
tapButton: () {
Navigator.pop(context);
});
return;
}
// if (profileUser.attendanceOut) {
// modalDialogGlobal(
// context: context,
// size: MediaQuery.of(context).size,
// title: "Gagal",
// contentBody: Strings.alreadyOut,
// buttonText: "Ok",
// tapButton: () {
// Navigator.pop(context);
// });
// return;
// }
if (profileUser.attendanceIn == false) {
modalDialogGlobal(
context: context,
......@@ -446,13 +446,13 @@ class _SelectOutletState extends State<SelectOutlet> {
color: Colors.grey,
),
color: ColorManager.backgroundColor,
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.3),
blurRadius: 2,
offset: const Offset(5, 5),
),
],
// boxShadow: [
// BoxShadow(
// color: Colors.grey.withOpacity(0.3),
// blurRadius: 2,
// offset: const Offset(5, 5),
// ),
// ],
),
child: Container(
width: double.infinity,
......@@ -618,7 +618,7 @@ class _SelectOutletState extends State<SelectOutlet> {
children: [
Expanded(
child: Text(
"[${widget.nearestBranch[selectedBranchFromList].code}] ${widget.nearestBranch[selectedBranchFromList].name}",
widget.nearestBranch[selectedBranchFromList].name,
style: getRegularStyle(
color: ColorManager.grey,
fontSize: 16,
......@@ -724,13 +724,13 @@ class _WidgetSelectOutletState extends State<WidgetSelectOutlet> {
color: ColorManager.backgroundColor,
borderRadius: BorderRadius.circular(8),
border: Border.all(width: 0.3, color: ColorManager.grey),
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.3),
blurRadius: 2,
offset: const Offset(5, 5),
),
],
// boxShadow: [
// BoxShadow(
// color: Colors.grey.withOpacity(0.3),
// blurRadius: 2,
// offset: const Offset(5, 5),
// ),
// ],
),
child: ListView.builder(
padding: EdgeInsets.zero,
......@@ -765,7 +765,7 @@ class _WidgetSelectOutletState extends State<WidgetSelectOutlet> {
children: [
Expanded(
child: Text(
"[${widget.nearestBranch[index].code}] ${widget.nearestBranch[index].name}",
widget.nearestBranch[index].name,
style: getRegularStyle(
color: (selectedOutlet == index)
? ColorManager.link
......@@ -916,13 +916,13 @@ class _WidgetSelectShiftState extends State<WidgetSelectShift> {
color: ColorManager.backgroundColor,
borderRadius: BorderRadius.circular(8),
border: Border.all(width: 0.3, color: ColorManager.grey),
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.3),
blurRadius: 2,
offset: const Offset(5, 5),
),
],
// boxShadow: [
// BoxShadow(
// color: Colors.grey.withOpacity(0.3),
// blurRadius: 2,
// offset: const Offset(5, 5),
// ),
// ],
),
child: ListView.builder(
padding: EdgeInsets.zero,
......@@ -1021,19 +1021,19 @@ class _WidgetSelectShiftState extends State<WidgetSelectShift> {
});
} else {
ProfileModel profileUser = apiResponse.data as ProfileModel;
if (profileUser.attendanceIn) {
modalDialogGlobal(
context: context,
size: MediaQuery.of(context).size,
title: "Gagal",
contentBody: Strings.alreadyIn,
buttonText: "Ok",
tapButton: () {
Navigator.pop(context);
Navigator.pop(context);
});
return;
}
// if (profileUser.attendanceIn) {
// modalDialogGlobal(
// context: context,
// size: MediaQuery.of(context).size,
// title: "Gagal",
// contentBody: Strings.alreadyIn,
// buttonText: "Ok",
// tapButton: () {
// Navigator.pop(context);
// Navigator.pop(context);
// });
// return;
// }
Navigator.popAndPushNamed(
context,
Routes.absentCamera,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment