Minor UX improvements

This commit is contained in:
franzap
2024-10-12 20:24:29 -03:00
parent 92ad714175
commit b9f999ad1e
3 changed files with 12 additions and 9 deletions
+4 -1
View File
@@ -77,7 +77,9 @@ class AppDetailScreen extends HookConsumerWidget {
h1: TextStyle(fontWeight: FontWeight.bold),
h2: TextStyle(fontWeight: FontWeight.bold),
p: TextStyle(
fontSize: 18, fontWeight: FontWeight.w300),
fontSize: 18,
fontWeight: FontWeight.w300,
),
),
selectable: false,
data: app.content.parseEmojis(),
@@ -242,6 +244,7 @@ class AppDetailScreen extends HookConsumerWidget {
),
),
Gap(10),
if (app.releases.isEmpty) Text('No available releases'),
if (app.releases.ordered.isNotEmpty)
ReleaseCard(release: app.releases.ordered.first),
],
+7 -7
View File
@@ -52,13 +52,13 @@ class AppCard extends HookConsumerWidget {
),
);
}
return Card(
margin: EdgeInsets.only(top: 6, bottom: 6),
elevation: 0,
child: GestureDetector(
onTap: () {
context.go('/details', extra: app);
},
return GestureDetector(
onTap: () {
context.go('/details', extra: app);
},
child: Card(
margin: EdgeInsets.only(top: 6, bottom: 6),
elevation: 0,
child: Padding(
padding: const EdgeInsets.all(12),
child: Row(
+1 -1
View File
@@ -38,7 +38,7 @@ class LatestReleasesContainer extends HookConsumerWidget {
class LatestReleasesAppNotifier extends AutoDisposeAsyncNotifier<List<App>> {
@override
Future<List<App>> build() async {
final timer = Timer.periodic(Duration(minutes: 1), (_) => fetch());
final timer = Timer.periodic(Duration(minutes: 5), (_) => fetch());
ref.onDispose(timer.cancel);
fetch();
// .catchError((e) {