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
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:
1 parent
aa5255d1e4
commit
2e0033ce2d
260 files changed
+43963
-5591
No files matched your search
@@ -0,0 +1,34 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import '../../workspace/projects.dart';
|
||||
|
||||
/// Keeps the surface mounted while a timeline operation temporarily blocks edits.
|
||||
class TimelineOperationRegion extends ConsumerWidget {
|
||||
const TimelineOperationRegion({
|
||||
super.key,
|
||||
required this.projectId,
|
||||
required this.child,
|
||||
this.loading = false,
|
||||
});
|
||||
|
||||
final String projectId;
|
||||
final bool loading;
|
||||
final Widget child;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final creating = ref.watch(
|
||||
projectsProvider.select(
|
||||
(value) =>
|
||||
value.value?.activeProject?.id == projectId &&
|
||||
value.value?.creatingTimeline == true,
|
||||
),
|
||||
);
|
||||
final blocked = loading || creating;
|
||||
return IgnorePointer(
|
||||
ignoring: blocked,
|
||||
child: ExcludeFocus(excluding: blocked, child: child),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user