dev
dart 25 lines 655 Bytes
Raw
1 import 'package:flutter/material.dart';
2 import 'package:cake_wallet/utils/date_formatter.dart';
3
4 class DateSectionRaw extends StatelessWidget {
5 DateSectionRaw({required this.date, super.key});
6
7 final DateTime date;
8
9 @override
10 Widget build(BuildContext context) {
11 final title = DateFormatter.convertDateTimeToReadableString(date);
12
13 return Container(
14 height: 35,
15 alignment: Alignment.center,
16 color: Colors.transparent,
17 child: Text(
18 title,
19 style: Theme.of(context).textTheme.bodySmall?.copyWith(
20 color: Theme.of(context).colorScheme.onSurfaceVariant,
21 ),
22 ),
23 );
24 }
25 }