Files
cutdex/lib/features/properties/properties_presentation_state.dart
T
lingjhf 06f1c26681
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped
Move editor UI into the app and release verified Core dependencies (#14)
2026-10-11 19:59:40 +00:00

34 lines
829 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../l10n/l10n.dart';
final propertyCategoryProvider =
Provider.family<ValueNotifier<PropertyCategory?>, (String, String, String)>(
(ref, identity) {
final category = ValueNotifier<PropertyCategory?>(null);
ref.onDispose(category.dispose);
return category;
},
);
enum PropertyCategory {
picture,
color,
mask,
audio,
speed,
animation,
basic;
String label(BuildContext context) => switch (this) {
picture => context.l10n.pictureProperties,
color => context.l10n.color,
mask => context.l10n.mask,
audio => context.l10n.audio,
speed => context.l10n.speedChange,
animation => context.l10n.animation,
basic => context.l10n.basic,
};
}