|
|
|
@ -116,11 +116,17 @@ class AddSickLeavScreen extends StatelessWidget {
|
|
|
|
icon: Icon(
|
|
|
|
icon: Icon(
|
|
|
|
Icons.open_in_full,
|
|
|
|
Icons.open_in_full,
|
|
|
|
size: 25,
|
|
|
|
size: 25,
|
|
|
|
|
|
|
|
color: item.status == 1
|
|
|
|
|
|
|
|
? Colors.grey[400]
|
|
|
|
|
|
|
|
: Colors.black,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// color: Colors.green, //Colors.black,
|
|
|
|
// color: Colors.green, //Colors.black,
|
|
|
|
onPressed: () => {
|
|
|
|
onPressed: () => {
|
|
|
|
openSickLeave(context, true,
|
|
|
|
if (item.status != 1)
|
|
|
|
extendedData: item)
|
|
|
|
{
|
|
|
|
|
|
|
|
openSickLeave(context, true,
|
|
|
|
|
|
|
|
extendedData: item)
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
))
|
|
|
|
))
|
|
|
|
: SizedBox(),
|
|
|
|
: SizedBox(),
|
|
|
|
|