- Changed window size to mobile phone format (400x800) - Removed width condition for ActiveProxyFooter - now always visible - Added run-umbrix.sh launch script with icon copying - Stats cards now display on all screen sizes
27 lines
706 B
Dart
27 lines
706 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:umbrix/core/localization/translations.dart';
|
|
import 'package:umbrix/core/model/failures.dart';
|
|
|
|
part 'app_update_failure.freezed.dart';
|
|
|
|
@freezed
|
|
sealed class AppUpdateFailure with _$AppUpdateFailure, Failure {
|
|
const AppUpdateFailure._();
|
|
|
|
@With<UnexpectedFailure>()
|
|
const factory AppUpdateFailure.unexpected([
|
|
Object? error,
|
|
StackTrace? stackTrace,
|
|
]) = AppUpdateUnexpectedFailure;
|
|
|
|
@override
|
|
({String type, String? message}) present(TranslationsEn t) {
|
|
return switch (this) {
|
|
AppUpdateUnexpectedFailure() => (
|
|
type: t.failure.unexpected,
|
|
message: null,
|
|
),
|
|
};
|
|
}
|
|
}
|