| .. | .. |
|---|
| 326 | 326 | |
|---|
| 327 | 327 | Widget _buildFooter(BuildContext context) { |
|---|
| 328 | 328 | final isDark = Theme.of(context).brightness == Brightness.dark; |
|---|
| 329 | | - final time = DateFormat('HH:mm').format( |
|---|
| 330 | | - DateTime.fromMillisecondsSinceEpoch(message.timestamp), |
|---|
| 331 | | - ); |
|---|
| 329 | + final dt = DateTime.fromMillisecondsSinceEpoch(message.timestamp); |
|---|
| 330 | + final now = DateTime.now(); |
|---|
| 331 | + final isToday = dt.year == now.year && dt.month == now.month && dt.day == now.day; |
|---|
| 332 | + final time = isToday |
|---|
| 333 | + ? DateFormat('HH:mm').format(dt) |
|---|
| 334 | + : DateFormat('dd.MM. HH:mm').format(dt); |
|---|
| 332 | 335 | |
|---|
| 333 | 336 | return Row( |
|---|
| 334 | 337 | mainAxisSize: MainAxisSize.min, |
|---|