97 lines
3.1 KiB
Dart
97 lines
3.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../../../common/theme/theme.dart';
|
|
import '../../../components/spacer/spacer.dart';
|
|
import 'task_tile.dart';
|
|
|
|
class HomeTask extends StatelessWidget {
|
|
const HomeTask({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(
|
|
vertical: 24,
|
|
horizontal: AppValue.padding,
|
|
).copyWith(bottom: 0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Text(
|
|
'Tugas Harian',
|
|
style: AppStyle.h6.copyWith(
|
|
fontWeight: FontWeight.w700,
|
|
color: AppColor.textPrimary,
|
|
letterSpacing: -0.5,
|
|
),
|
|
),
|
|
Text(
|
|
'3/5 Selesai',
|
|
style: AppStyle.md.copyWith(
|
|
fontWeight: FontWeight.w600,
|
|
color: AppColor.primary,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
const SpaceHeight(20),
|
|
Container(
|
|
padding: const EdgeInsets.all(20),
|
|
decoration: BoxDecoration(
|
|
color: AppColor.white,
|
|
borderRadius: BorderRadius.circular(AppValue.radius),
|
|
border: Border.all(color: AppColor.border.withOpacity(0.5)),
|
|
boxShadow: [
|
|
BoxShadow(
|
|
color: Colors.black.withOpacity(0.04),
|
|
blurRadius: 20,
|
|
offset: const Offset(0, 8),
|
|
),
|
|
],
|
|
),
|
|
child: Column(
|
|
children: [
|
|
HomeTaskTile(
|
|
title: 'Cek stok produk terlaris',
|
|
subtitle: 'Pastikan ketersediaan produk favorit pelanggan',
|
|
isCompleted: true,
|
|
color: AppColor.success,
|
|
),
|
|
const SpaceHeight(16),
|
|
HomeTaskTile(
|
|
title: 'Review laporan penjualan kemarin',
|
|
subtitle: 'Analisis performa dan identifikasi peluang',
|
|
isCompleted: true,
|
|
color: AppColor.success,
|
|
),
|
|
const SpaceHeight(16),
|
|
HomeTaskTile(
|
|
title: 'Update harga produk musiman',
|
|
subtitle: 'Sesuaikan harga berdasarkan demand pasar',
|
|
isCompleted: true,
|
|
color: AppColor.success,
|
|
),
|
|
const SpaceHeight(16),
|
|
HomeTaskTile(
|
|
title: 'Backup data transaksi',
|
|
subtitle: 'Pastikan data aman dan tersimpan',
|
|
color: AppColor.warning,
|
|
),
|
|
const SpaceHeight(16),
|
|
HomeTaskTile(
|
|
title: 'Training tim kasir baru',
|
|
subtitle: 'Onboarding karyawan untuk shift sore',
|
|
color: AppColor.info,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|