mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-06 13:08:24 +00:00
Minor UX improvements
This commit is contained in:
@@ -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),
|
||||
],
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user