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

shadow dihilangin

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