Compare commits

..
2 Commits
Author SHA1 Message Date
kfj001 f1fd59c199 Fixes app orientation to vertical for mobile phones 2026-05-10 01:20:05 +00:00
kfj001 0c6442e260 Updates formatting for last updated 2026-05-10 01:19:48 +00:00
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'app_theme_business_object.dart'; import 'app_theme_business_object.dart';
import 'live_info_business_object.dart'; import 'live_info_business_object.dart';
@@ -125,7 +126,7 @@ class LiveInfoPanel extends StatelessWidget {
Text( Text(
liveInfo.lastUpdatedAt == null liveInfo.lastUpdatedAt == null
? 'Waiting for API response...' ? 'Waiting for API response...'
: 'Last update: ${liveInfo.lastUpdatedAt!.toLocal().toString().substring(11, 19)}${snapshot?.timezone ?? '--'}', : 'Last update: ${DateFormat.yMd().format(liveInfo.lastUpdatedAt!.toLocal())} ${DateFormat.jm().format(liveInfo.lastUpdatedAt!.toLocal())}${snapshot?.timezone ?? '--'}',
style: Theme.of(context).textTheme.labelSmall, style: Theme.of(context).textTheme.labelSmall,
), ),
], ],
+7 -1
View File
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:just_audio_background/just_audio_background.dart'; import 'package:just_audio_background/just_audio_background.dart';
import 'package:flutter/services.dart';
import 'app_theme_business_object.dart'; import 'app_theme_business_object.dart';
import 'live_info_business_object.dart'; import 'live_info_business_object.dart';
import 'live_info_panel.dart'; import 'live_info_panel.dart';
@@ -14,6 +14,12 @@ Future<void> main() async {
androidNotificationOngoing: true, androidNotificationOngoing: true,
); );
WidgetsFlutterBinding.ensureInitialized();
await SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
runApp(const MyApp()); runApp(const MyApp());
} }