Fix display dateformat

This commit is contained in:
Mike Schwörer 2025-04-13 16:43:05 +02:00
parent 3239a075fb
commit b687464d59
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
6 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@
- [ ] Still @ERROR on scn-init, but no logs? - better persist error (write in SharedPrefs at error_$date=txt ?), also perhaps print first error line in scn-init notification?
- [ ] fix time format (in message-list, in card, top right) - midnight is shown as "24:05" instead of "00:05" - thats weird
- [x] fix time format (in message-list, in card, top right) - midnight is shown as "24:05" instead of "00:05" - thats weird
- [ ] Add scrollbar
-> https://api.flutter.dev/flutter/material/Scrollbar-class.html

View File

@ -20,7 +20,7 @@ enum ChannelListItemMode {
}
class ChannelListItem extends StatefulWidget {
static final _dateFormat = DateFormat('yyyy-MM-dd kk:mm');
static final _dateFormat = DateFormat('yyyy-MM-dd HH:mm'); //TODO setting
const ChannelListItem({
required this.channel,

View File

@ -11,7 +11,7 @@ class DebugLogsPage extends StatefulWidget {
class _DebugLogsPageState extends State<DebugLogsPage> {
Box<SCNLog> logBox = Hive.box<SCNLog>('scn-logs');
static final _dateFormat = DateFormat('yyyy-MM-dd kk:mm');
static final _dateFormat = DateFormat('yyyy-MM-dd HH:mm'); //TODO setting
@override
Widget build(BuildContext context) {

View File

@ -13,7 +13,7 @@ class DebugRequestsPage extends StatefulWidget {
class _DebugRequestsPageState extends State<DebugRequestsPage> {
Box<SCNRequest> requestsBox = Hive.box<SCNRequest>('scn-requests');
static final _dateFormat = DateFormat('yyyy-MM-dd kk:mm');
static final _dateFormat = DateFormat('yyyy-MM-dd HH:mm'); //TODO setting
@override
Widget build(BuildContext context) {

View File

@ -8,7 +8,7 @@ import 'package:intl/intl.dart';
import 'package:simplecloudnotifier/utils/ui.dart';
class MessageListItem extends StatelessWidget {
static final _dateFormat = DateFormat('yyyy-MM-dd kk:mm');
static final _dateFormat = DateFormat('yyyy-MM-dd HH:mm'); //TODO setting
static final _lineCount = 3; //TODO setting
const MessageListItem({

View File

@ -34,7 +34,7 @@ class MessageViewPage extends StatefulWidget {
class _MessageViewPageState extends State<MessageViewPage> {
late Future<(SCNMessage, ChannelPreview, KeyTokenPreview, UserPreview)>? mainFuture;
(SCNMessage, ChannelPreview, KeyTokenPreview, UserPreview)? mainFutureSnapshot = null;
static final _dateFormat = DateFormat('yyyy-MM-dd kk:mm');
static final _dateFormat = DateFormat('yyyy-MM-dd HH:mm'); //TODO setting
bool _monospaceMode = false;