2025-08-02 10:50:48 +07:00
|
|
|
import 'package:enaklo_pos/core/constants/colors.dart';
|
|
|
|
|
import 'package:enaklo_pos/core/extensions/build_context_ext.dart';
|
2025-08-03 14:39:15 +07:00
|
|
|
import 'package:enaklo_pos/data/models/response/order_response_model.dart';
|
2025-08-02 10:50:48 +07:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
class SalesRightTitle extends StatelessWidget {
|
2025-08-03 14:39:15 +07:00
|
|
|
final Order? order;
|
2025-08-02 10:50:48 +07:00
|
|
|
final List<Widget>? actionWidget;
|
|
|
|
|
const SalesRightTitle({super.key, this.order, this.actionWidget});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
height: context.deviceHeight * 0.1,
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AppColors.white,
|
|
|
|
|
border: Border(
|
|
|
|
|
bottom: BorderSide(
|
|
|
|
|
color: AppColors.background,
|
|
|
|
|
width: 1.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
2025-08-06 15:27:05 +07:00
|
|
|
"Detail Pesanan",
|
2025-08-02 10:50:48 +07:00
|
|
|
style: TextStyle(
|
|
|
|
|
color: AppColors.black,
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (actionWidget != null) ...actionWidget!,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|