feat: sync order
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user