feat(workspace): refresh desktop editing experience and prepare 0.1.2
Gitea CI / Build Android APK (pull_request) Canceled after 0s
Gitea CI / Build Windows x64 app (pull_request) Canceled after 0s
Gitea CI / Audit and package Windows x64 (pull_request) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (pull_request) Canceled after 0s
Gitea CI / Gitea CI passed (pull_request) Canceled after 0s
Gitea CI / Check code and tests (pull_request) Canceled after 6m29s

This commit is contained in:
lingjhf committed 2026-10-09 01:56:01 +08:00
1 parent aa5255d1e4
commit 2e0033ce2d
260 files changed
+43963 -5591

No files matched your search

+49 -22
View File
@@ -247,8 +247,16 @@ class _ClipPropertiesState extends State<_ClipProperties> {
_selectCategory,
),
child: ScrollEdgeFadeBuilder(
key: PageStorageKey((clip.id, _selected)),
key: ValueKey((widget.sequence, clip.id, _selected)),
builder: (controller) => SingleChildScrollView(
// Keep scroll offsets separate from nested expansion state and from
// the legacy inspector key, which may already contain a bool.
key: PageStorageKey((
'property-scroll',
widget.sequence,
clip.id,
_selected,
)),
controller: controller,
// Inspector controls stop at their bounds; macOS's default elastic
// physics repeatedly displaces the content during edge scrolling.
@@ -289,28 +297,42 @@ class _Property extends StatelessWidget {
final String value;
@override
Widget build(BuildContext context) => Padding(
padding: AppSpacing.panelSection,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
spacing: AppSpacing.small,
children: [
Expanded(
child: Text(
label,
style: AppTheme.propertySectionTitleStyle(context),
),
),
Expanded(
child: Text(
value,
textAlign: TextAlign.right,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: Theme.of(context).colorScheme.onSurfaceVariant,
padding: AppTheme.isDesktop(context)
? const EdgeInsets.symmetric(
horizontal: AppInspectorMetrics.padding,
vertical: 4,
)
: AppSpacing.panelSection,
child: AppTheme.isDesktop(context)
? AppPropertyGroup(
label: label,
child: Text(
value,
textAlign: TextAlign.right,
style: Theme.of(context).textTheme.bodyMedium,
),
)
: Row(
crossAxisAlignment: CrossAxisAlignment.start,
spacing: AppSpacing.small,
children: [
Expanded(
child: Text(
label,
style: AppTheme.propertySectionTitleStyle(context),
),
),
Expanded(
child: Text(
value,
textAlign: TextAlign.right,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
),
),
],
),
),
],
),
);
}
@@ -320,7 +342,12 @@ class _Message extends StatelessWidget {
@override
Widget build(BuildContext context) => Center(
child: Padding(
padding: AppSpacing.panelSection,
padding: AppTheme.isDesktop(context)
? const EdgeInsets.symmetric(
horizontal: AppInspectorMetrics.padding,
vertical: 4,
)
: AppSpacing.panelSection,
child: Text(
text,
textAlign: TextAlign.center,