Move editor UI into the app and release verified Core dependencies (#14)
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped
This commit was merged in pull request #14.
This commit is contained in:
1 parent
abc1868550
commit
06f1c26681
452 files changed
+43806
-2329
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import 'package:cutdex_sdk/project.dart';
|
||||
import 'package:cutdex_core/project.dart';
|
||||
import 'package:cutdex_ui/icons.dart';
|
||||
import 'package:cutdex_ui/theme.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -24,12 +24,23 @@ class DesktopMediaAssetTile extends StatelessWidget {
|
||||
final MediaAvailability? availability;
|
||||
|
||||
static TextStyle? _nameStyle(BuildContext context) =>
|
||||
Theme.of(context).textTheme.bodyMedium
|
||||
?.copyWith(fontSize: 13, height: 20 / 13);
|
||||
Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
fontFamily: 'packages/cutdex_ui/Inter',
|
||||
fontSize: AppInspectorMetrics.fontSize,
|
||||
height: AppInspectorMetrics.lineHeight / AppInspectorMetrics.fontSize,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontVariations: const [FontVariation('wght', 500)],
|
||||
letterSpacing: AppInspectorMetrics.fontSize * .005,
|
||||
);
|
||||
|
||||
static TextStyle? _metadataStyle(BuildContext context) =>
|
||||
Theme.of(context).textTheme.bodySmall
|
||||
?.copyWith(fontSize: 12, height: 16 / 12);
|
||||
Theme.of(context).textTheme.bodySmall?.copyWith(
|
||||
fontFamily: 'packages/cutdex_ui/Inter',
|
||||
fontSize: AppInspectorMetrics.fontSize,
|
||||
height: AppInspectorMetrics.lineHeight / AppInspectorMetrics.fontSize,
|
||||
fontVariations: const [FontVariation('wght', 450)],
|
||||
letterSpacing: AppInspectorMetrics.fontSize * .005,
|
||||
);
|
||||
|
||||
/// Font fallback and fractional scaling can round a line above size × height.
|
||||
static double gridLabelHeight(BuildContext context) {
|
||||
@@ -106,7 +117,7 @@ class DesktopMediaAssetTile extends StatelessWidget {
|
||||
);
|
||||
final cover = ClipRRect(
|
||||
key: ValueKey('desktop-media-cover-${asset.id}'),
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
borderRadius: BorderRadius.circular(AppInspectorMetrics.radius),
|
||||
child: Stack(
|
||||
children: [
|
||||
if (unavailable)
|
||||
@@ -215,66 +226,3 @@ class DesktopMediaAssetTile extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// List labels follow the same column widths and breakpoints as asset rows.
|
||||
class DesktopMediaListHeader extends StatelessWidget {
|
||||
const DesktopMediaListHeader({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: DesktopMediaMetrics.padding + DesktopMediaMetrics.tilePadding,
|
||||
),
|
||||
child: LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
final columns = DesktopMediaListColumns(constraints.maxWidth);
|
||||
Widget label(String text, {bool end = false}) => Text(
|
||||
text,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: end ? TextAlign.end : TextAlign.start,
|
||||
style: DesktopMediaAssetTile._metadataStyle(context)
|
||||
?.copyWith(color: Theme.of(context).colorScheme.onSurfaceVariant),
|
||||
);
|
||||
return SizedBox(
|
||||
height: (MediaQuery.textScalerOf(context).scale(16) + 8).clamp(
|
||||
DesktopMediaMetrics.listHeader,
|
||||
double.infinity,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsetsDirectional.only(
|
||||
start:
|
||||
DesktopMediaMetrics.listCover + DesktopMediaMetrics.gap,
|
||||
),
|
||||
child: label(context.l10n.name),
|
||||
),
|
||||
),
|
||||
if (columns.duration)
|
||||
SizedBox(
|
||||
width: DesktopMediaListColumns.durationWidth,
|
||||
child: label(context.l10n.duration, end: true),
|
||||
),
|
||||
if (columns.specification) ...[
|
||||
const SizedBox(width: DesktopMediaMetrics.gap),
|
||||
SizedBox(
|
||||
width: DesktopMediaListColumns.specificationWidth,
|
||||
child: label(context.l10n.mediaSpecification),
|
||||
),
|
||||
],
|
||||
if (columns.kind) ...[
|
||||
const SizedBox(width: DesktopMediaMetrics.gap),
|
||||
SizedBox(
|
||||
width: DesktopMediaListColumns.kindWidth,
|
||||
child: label(context.l10n.mediaCategory),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user