diff options
| author | mirror <mirror@localhost> | 2026-11-22 08:41:00 +0900 |
|---|---|---|
| committer | mirror <mirror@localhost> | 2026-11-22 08:41:00 +0900 |
| commit | 449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch) | |
| tree | c131c3528c4d517f56e19b854a7453fedb097d40 /lib/view/src/source/state.dart | |
| download | aves-src-master.tar.gz aves-src-master.zip | |
Diffstat (limited to 'lib/view/src/source/state.dart')
| -rw-r--r-- | lib/view/src/source/state.dart | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/view/src/source/state.dart b/lib/view/src/source/state.dart new file mode 100644 index 0000000..9adc287 --- /dev/null +++ b/lib/view/src/source/state.dart @@ -0,0 +1,14 @@ +import 'package:aves/l10n/l10n.dart'; +import 'package:aves_model/aves_model.dart'; + +extension ExtraSourceStateView on SourceState { + String? getName(AppLocalizations l10n) { + return switch (this) { + SourceState.loading => l10n.sourceStateLoading, + SourceState.cataloguing => l10n.sourceStateCataloguing, + SourceState.locatingCountries => l10n.sourceStateLocatingCountries, + SourceState.locatingPlaces => l10n.sourceStateLocatingPlaces, + SourceState.ready => null, + }; + } +} |
