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