Add the Flutter video editing application with project management, media import, timeline editing, preview, AI assistance, diagnostics and settings. Include shared UI and native host packages, platform runners, application tests and release tooling. Provide usage and contribution guides, the MIT license and third-party notices. Exclude local credentials, build outputs and validation data.
27 lines
873 B
Dart
27 lines
873 B
Dart
import 'package:flutter/widgets.dart';
|
|
import 'package:cutdex/l10n/l10n.dart';
|
|
import 'package:cutdex_sdk/editor.dart';
|
|
|
|
extension TransformChannelLabel on TransformChannel {
|
|
String label(BuildContext context) => switch (this) {
|
|
TransformChannel.position => context.l10n.position,
|
|
TransformChannel.rotation => context.l10n.rotation,
|
|
TransformChannel.scale => context.l10n.scale,
|
|
};
|
|
}
|
|
|
|
Map<String, List<String>> localizedMaskChannels(BuildContext context) => {
|
|
context.l10n.position: ['center.x', 'center.y'],
|
|
context.l10n.size: ['width', 'height'],
|
|
context.l10n.rotation: ['rotation'],
|
|
context.l10n.feather: ['feather'],
|
|
};
|
|
|
|
// Stable channel identifiers are independent of the interface language.
|
|
const maskChannels = {
|
|
'position': ['center.x', 'center.y'],
|
|
'size': ['width', 'height'],
|
|
'rotation': ['rotation'],
|
|
'feather': ['feather'],
|
|
};
|