feat(workspace): 桌面工作区、主题与交互更新,发布 0.1.2
Gitea CI / Check code and tests (push) Successful in 6m37s
Gitea CI / Build Windows x64 app (push) Successful in 3m18s
Gitea CI / Build Android APK (push) Successful in 3m47s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m7s
Gitea CI / Assemble and validate CI artifacts (push) Successful in 50s
Gitea CI / Gitea CI passed (push) Successful in 2s
Gitea Release / Prepare draft Release (push) Successful in 9s
Gitea Release / Upload Android to draft Release (push) Successful in 16s
Gitea Release / Upload Windows to draft Release (push) Successful in 22s
Gitea Release / Verify and publish Release (push) Successful in 14s
Gitea CI / Check code and tests (push) Successful in 6m37s
Gitea CI / Build Windows x64 app (push) Successful in 3m18s
Gitea CI / Build Android APK (push) Successful in 3m47s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m7s
Gitea CI / Assemble and validate CI artifacts (push) Successful in 50s
Gitea CI / Gitea CI passed (push) Successful in 2s
Gitea Release / Prepare draft Release (push) Successful in 9s
Gitea Release / Upload Android to draft Release (push) Successful in 16s
Gitea Release / Upload Windows to draft Release (push) Successful in 22s
Gitea Release / Verify and publish Release (push) Successful in 14s
This commit was merged in pull request #13.
This commit is contained in:
1 parent
aa5255d1e4
commit
abc1868550
260 files changed
+43964
-5591
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import 'package:cutdex/shared/widgets/error_notification_host.dart';
|
||||
import 'package:cutdex_ui/icons.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
@@ -39,8 +40,19 @@ class TouchMediaBrowser extends ConsumerWidget {
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final browser = ref.watch(mediaBrowserProvider(projectId));
|
||||
ref.watch(externalMediaImportProvider(projectId));
|
||||
final workspace = ref.watch(projectsProvider).value;
|
||||
ref.watch(
|
||||
externalMediaImportProvider(projectId).select((value) => value.isLoading),
|
||||
);
|
||||
final workspace = ref.watch(
|
||||
projectsProvider.select(
|
||||
(value) => value.value?.copyWith(
|
||||
recent: const [],
|
||||
timelines: const [],
|
||||
error: null,
|
||||
creatingTimeline: false,
|
||||
),
|
||||
),
|
||||
);
|
||||
final timelineId = workspace?.activeProject?.id == projectId
|
||||
? workspace?.timeline?.id
|
||||
: null;
|
||||
@@ -72,20 +84,20 @@ class TouchMediaBrowser extends ConsumerWidget {
|
||||
height: 56,
|
||||
child: Row(
|
||||
children: [
|
||||
SizedBox.square(
|
||||
dimension: 48,
|
||||
child: IconButton(
|
||||
SizedBox(
|
||||
height: 48,
|
||||
child: TextButton(
|
||||
key: const Key('media-import-button'),
|
||||
tooltip: context.l10n.importMedia,
|
||||
onPressed: browser.canImport
|
||||
? () => pickMediaFiles(browser)
|
||||
: null,
|
||||
icon: const Icon(Icons.add),
|
||||
child: Text(context.l10n.importMedia),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: DropdownButton<MediaFilter>(
|
||||
key: const Key('media-category-picker'),
|
||||
icon: const Icon(AppIcons.expandMore),
|
||||
isExpanded: true,
|
||||
underline: const SizedBox.shrink(),
|
||||
value: browser.filter,
|
||||
@@ -110,8 +122,8 @@ class TouchMediaBrowser extends ConsumerWidget {
|
||||
: context.l10n.gridLayout,
|
||||
icon: Icon(
|
||||
browser.grid
|
||||
? Icons.view_list_outlined
|
||||
: Icons.grid_view_outlined,
|
||||
? AppIcons.listView
|
||||
: AppIcons.gridView,
|
||||
),
|
||||
onPressed: () => browser.grid = !browser.grid,
|
||||
),
|
||||
@@ -119,7 +131,7 @@ class TouchMediaBrowser extends ConsumerWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
if (browser.busy) const LinearProgressIndicator(),
|
||||
if (browser.importing) const LinearProgressIndicator(),
|
||||
Expanded(
|
||||
key: const Key('media-panel-body'),
|
||||
child: MediaBrowserBody(
|
||||
@@ -150,7 +162,7 @@ class TouchMediaBrowser extends ConsumerWidget {
|
||||
);
|
||||
}
|
||||
},
|
||||
icon: const Icon(Icons.add),
|
||||
icon: const Icon(AppIcons.add),
|
||||
label: Text(
|
||||
context.l10n.addToTimeline,
|
||||
maxLines: 1,
|
||||
|
||||
Reference in new issue
Block a user