17 lines
577 B
Dart
17 lines
577 B
Dart
import 'package:aves/widgets/common/extensions/build_context.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
import 'enums.dart';
|
|
|
|
extension ExtraSlideshowVideoPlayback on SlideshowVideoPlayback {
|
|
String getName(BuildContext context) {
|
|
switch (this) {
|
|
case SlideshowVideoPlayback.skip:
|
|
return context.l10n.slideshowVideoPlaybackSkip;
|
|
case SlideshowVideoPlayback.playMuted:
|
|
return context.l10n.slideshowVideoPlaybackMuted;
|
|
case SlideshowVideoPlayback.playWithSound:
|
|
return context.l10n.slideshowVideoPlaybackWithSound;
|
|
}
|
|
}
|
|
}
|