|
|
|
|
@ -29,12 +29,12 @@ class WorkingTimeTile extends StatelessWidget {
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AppColor.fieldBgColor(context),
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
boxShadow: [
|
|
|
|
|
BoxShadow(
|
|
|
|
|
color: Colors.black.withOpacity(0.05),
|
|
|
|
|
blurRadius: 10,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
// boxShadow: [
|
|
|
|
|
// BoxShadow(
|
|
|
|
|
// color: Colors.black.withOpacity(0.05),
|
|
|
|
|
// blurRadius: 10,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
@ -46,9 +46,9 @@ class WorkingTimeTile extends StatelessWidget {
|
|
|
|
|
Text(
|
|
|
|
|
title,
|
|
|
|
|
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
|
|
|
|
color: context.isDark ? null : AppColor.neutral20,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
color: context.isDark ? null : AppColor.neutral20,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
" ${ServiceRequestUtils.formatTotalWorkingHours(totalWorkingTime)}",
|
|
|
|
|
@ -60,17 +60,16 @@ class WorkingTimeTile extends StatelessWidget {
|
|
|
|
|
const Icon(Icons.info_outline_rounded, color: AppColor.primary10),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).onPress(() async{
|
|
|
|
|
).onPress(() async {
|
|
|
|
|
await showModalBottomSheet(
|
|
|
|
|
context: context,
|
|
|
|
|
isDismissible: true,
|
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
|
|
|
|
|
),
|
|
|
|
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
|
|
|
|
builder: (BuildContext context) =>
|
|
|
|
|
TotalWorkingTimeDetailBottomSheet(timerList: timerList),
|
|
|
|
|
context: context,
|
|
|
|
|
isDismissible: true,
|
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
|
|
|
|
|
),
|
|
|
|
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
|
|
|
|
builder: (BuildContext context) => TotalWorkingTimeDetailBottomSheet(timerList: timerList),
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|