61 lines
1.6 KiB
Dart
61 lines
1.6 KiB
Dart
import 'package:enaklo_pos/core/extensions/build_context_ext.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:enaklo_pos/core/extensions/date_time_ext.dart';
|
|
|
|
import '../../../core/constants/colors.dart';
|
|
|
|
class ReportTitle extends StatelessWidget {
|
|
final List<Widget>? actionWidget;
|
|
const ReportTitle({super.key, this.actionWidget});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
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,
|
|
),
|
|
),
|
|
),
|
|
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,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
if (actionWidget != null)
|
|
Row(
|
|
children: actionWidget!,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|