refactor(desktop): reorganize workspace panels and navigation
This commit is contained in:
1 parent
826745b407
commit
1f73765745
92 files changed
+5811
-2650
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import 'package:cutdex/shared/widgets/error_notification_host.dart';
|
||||
import 'package:cutdex/l10n/l10n.dart';
|
||||
import 'package:cutdex_sdk/editor.dart';
|
||||
import 'package:cutdex_sdk/timeline/model.dart';
|
||||
@@ -54,8 +55,8 @@ class _CaptionPropertiesState extends State<CaptionProperties> {
|
||||
widget.session.setCaption(widget.sequence, command);
|
||||
return true;
|
||||
} on CommandRejected catch (error) {
|
||||
ScaffoldMessenger.maybeOf(context)?.showSnackBar(
|
||||
SnackBar(
|
||||
ErrorNotificationHost.maybeOf(context)?.show(
|
||||
ErrorNotification(
|
||||
content: Text(
|
||||
error.code == 'staleVersion'
|
||||
? context.l10n.captionEditChanged
|
||||
@@ -487,10 +488,8 @@ class _CaptionPropertiesState extends State<CaptionProperties> {
|
||||
),
|
||||
);
|
||||
} on CommandRejected {
|
||||
ScaffoldMessenger.maybeOf(
|
||||
context,
|
||||
)?.showSnackBar(
|
||||
SnackBar(
|
||||
ErrorNotificationHost.maybeOf(context)?.show(
|
||||
ErrorNotification(
|
||||
content: Text(context.l10n.captionChanged),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user