feat: sync order

This commit is contained in:
efrilm
2025-08-03 14:39:15 +07:00
parent 3d1ae25bcf
commit 051b64e3a6
25 changed files with 1422 additions and 333 deletions
@@ -6,6 +6,7 @@ import 'package:enaklo_pos/presentation/sales/dialog/filter_dialog.dart';
import 'package:flutter/material.dart';
class SalesTitle extends StatelessWidget {
final String title;
final DateTime startDate;
final DateTime endDate;
final int total;
@@ -18,7 +19,8 @@ class SalesTitle extends StatelessWidget {
required this.endDate,
required this.onChanged,
required this.total,
required this.onDateRangeChanged});
required this.onDateRangeChanged,
required this.title});
@override
Widget build(BuildContext context) {
@@ -39,18 +41,14 @@ class SalesTitle extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
GestureDetector(
onTap: () => context.pop(),
child: Icon(
Icons.arrow_back,
color: AppColors.primary,
size: 24,
),
IconButton(
onPressed: () => context.pop(),
icon: Icon(Icons.arrow_back, color: AppColors.black),
),
SpaceWidth(16),
Expanded(
child: Text(
"Daftar Pesanan",
title,
style: TextStyle(
color: AppColors.black,
fontSize: 20,