Fix asset date UI (#1590) + update packages

This commit is contained in:
Imran Remtulla
2024-05-05 21:11:59 -04:00
parent f76637a2e1
commit c0a2e372e5
5 changed files with 26 additions and 50 deletions

View File

@@ -133,7 +133,7 @@ class _AppPageState extends State<AppPage> {
child: Text(
app?.app.releaseDate == null
? tr('changes')
: app!.app.releaseDate.toString(),
: app!.app.releaseDate!.toLocal().toString(),
textAlign: TextAlign.center,
style:
Theme.of(context).textTheme.labelSmall!.copyWith(

View File

@@ -437,7 +437,7 @@ class AppsPageState extends State<AppsPage> {
? tr('changes')
: ''
: DateFormat('yyyy-MM-dd')
.format(listedApps[appIndex].app.releaseDate!);
.format(listedApps[appIndex].app.releaseDate!.toLocal());
}
getSingleAppHorizTile(int index) {

View File

@@ -119,7 +119,7 @@ class _HomePageState extends State<HomePage> {
}
// Check initial link if app was in cold state (terminated)
final appLink = await _appLinks.getInitialAppLink();
final appLink = await _appLinks.getInitialLink();
if (appLink != null) {
await interpretLink(appLink);
}