mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 20:48:24 +00:00
Minor UI fixes
This commit is contained in:
@@ -139,7 +139,28 @@ class AppCard extends HookConsumerWidget {
|
||||
],
|
||||
|
||||
// Update button (for apps with updates or currently downloading/installing)
|
||||
if (showUpdateButton) _AppCardUpdateButtonSection(app: app!),
|
||||
if (showUpdateButton)
|
||||
LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
// Match the text column start (icon width + spacing)
|
||||
final iconSize = (constraints.maxWidth * 0.20).clamp(
|
||||
48.0,
|
||||
64.0,
|
||||
);
|
||||
final leftInset = iconSize + 14;
|
||||
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(left: leftInset),
|
||||
child: SizedBox(
|
||||
width: (constraints.maxWidth - leftInset).clamp(
|
||||
0.0,
|
||||
constraints.maxWidth,
|
||||
),
|
||||
child: _AppCardUpdateButtonSection(app: app!),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
// Zap encouragement (only for downloading/installing developer-signed apps)
|
||||
if (showZapEncouragement)
|
||||
@@ -249,7 +270,7 @@ class AppCard extends HookConsumerWidget {
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(text: appName, style: titleStyle),
|
||||
TextSpan(text: ' by ', style: byStyle),
|
||||
TextSpan(text: ' by ', style: byStyle),
|
||||
WidgetSpan(
|
||||
alignment: PlaceholderAlignment.middle,
|
||||
child: Padding(
|
||||
|
||||
@@ -111,6 +111,7 @@ class ZappersHorizontalList extends StatelessWidget {
|
||||
child: Row(
|
||||
children: [
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
'⚡️${formatSatsCompact(totalSats)}',
|
||||
@@ -119,7 +120,12 @@ class ZappersHorizontalList extends StatelessWidget {
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
const SizedBox(width: 6),
|
||||
Text(
|
||||
'sats by',
|
||||
style: theme.textTheme.bodyMedium?.copyWith(color: color),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
],
|
||||
),
|
||||
for (final e in entries) ...[
|
||||
|
||||
Reference in New Issue
Block a user