mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-13 17:30:31 -07:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
16
lib/util/box_fit_extension.dart
Normal file
16
lib/util/box_fit_extension.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import 'package:fladder/util/localization_helper.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
extension BoxFitExtension on BoxFit {
|
||||
String label(BuildContext context) {
|
||||
return switch (this) {
|
||||
BoxFit.fill => context.localized.videoScalingFill,
|
||||
BoxFit.contain => context.localized.videoScalingContain,
|
||||
BoxFit.cover => context.localized.videoScalingCover,
|
||||
BoxFit.fitWidth => context.localized.videoScalingFitWidth,
|
||||
BoxFit.fitHeight => context.localized.videoScalingFitHeight,
|
||||
BoxFit.none => context.localized.none,
|
||||
BoxFit.scaleDown => context.localized.videoScalingScaleDown,
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue