feat: dashboard

This commit is contained in:
efrilm
2025-08-18 01:50:50 +07:00
parent 51289d7829
commit 65ba81f311
25 changed files with 5786 additions and 606 deletions
@@ -1,11 +1,18 @@
import 'package:flutter/material.dart';
import '../../../../common/extension/extension.dart';
import '../../../../common/theme/theme.dart';
import '../../../../domain/analytic/analytic.dart';
import '../../../components/spacer/spacer.dart';
class ReportRevenueSummary extends StatelessWidget {
final DashboardOverview overview;
final Animation<double> rotationAnimation;
const ReportRevenueSummary({super.key, required this.rotationAnimation});
const ReportRevenueSummary({
super.key,
required this.rotationAnimation,
required this.overview,
});
@override
Widget build(BuildContext context) {
@@ -106,51 +113,13 @@ class ReportRevenueSummary extends StatelessWidget {
),
const Spacer(),
Text(
'Rp 15.450.000',
overview.totalSales.currencyFormatRp,
style: AppStyle.h1.copyWith(
color: AppColor.textWhite,
fontWeight: FontWeight.bold,
letterSpacing: -1,
),
),
const SpaceHeight(8),
Row(
children: [
Container(
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 6,
),
decoration: BoxDecoration(
color: AppColor.success.withOpacity(0.9),
borderRadius: BorderRadius.circular(20),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.trending_up,
color: AppColor.textWhite,
size: 16,
),
SpaceWidth(4),
Text(
'+12.5%',
style: AppStyle.sm.copyWith(
color: AppColor.textWhite,
fontWeight: FontWeight.w700,
),
),
],
),
),
const SpaceWidth(12),
Text(
'dari periode sebelumnya',
style: AppStyle.sm.copyWith(color: AppColor.textWhite),
),
],
),
],
),
),