61 lines
1.6 KiB
Dart
Raw Normal View History

2025-08-01 18:27:40 +07:00
import 'package:enaklo_pos/core/extensions/build_context_ext.dart';
2025-07-30 22:38:44 +07:00
import 'package:flutter/material.dart';
import 'package:enaklo_pos/core/extensions/date_time_ext.dart';
import '../../../core/constants/colors.dart';
class ReportTitle extends StatelessWidget {
2025-08-01 18:27:40 +07:00
final List<Widget>? actionWidget;
const ReportTitle({super.key, this.actionWidget});
2025-07-30 22:38:44 +07:00
@override
Widget build(BuildContext context) {
2025-08-01 18:27:40 +07:00
return Container(
padding: const EdgeInsets.symmetric(
horizontal: 16.0,
vertical: 10.0,
),
width: double.infinity,
height: context.deviceHeight * 0.1,
decoration: const BoxDecoration(
color: AppColors.white,
border: Border(
bottom: BorderSide(
color: AppColors.background,
width: 1.0,
2025-07-30 22:38:44 +07:00
),
),
2025-08-01 18:27:40 +07:00
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
'Laporan',
style: TextStyle(
color: AppColors.black,
fontSize: 20,
fontWeight: FontWeight.w600,
),
),
Text(
DateTime.now().toFormattedDate2(),
style: TextStyle(
color: AppColors.grey,
fontSize: 14,
),
),
],
2025-07-30 22:38:44 +07:00
),
2025-08-01 18:27:40 +07:00
if (actionWidget != null)
Row(
children: actionWidget!,
),
],
),
2025-07-30 22:38:44 +07:00
);
}
}