Files
umbrix/lib/features/settings/model/settings_failure.dart
Umbrix Developer 76a374950f feat: mobile-like window size and always-visible stats
- 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
2026-01-17 13:09:20 +03:00

27 lines
698 B
Dart

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:umbrix/core/localization/translations.dart';
import 'package:umbrix/core/model/failures.dart';
part 'settings_failure.freezed.dart';
@freezed
sealed class SettingsFailure with _$SettingsFailure, Failure {
const SettingsFailure._();
@With<UnexpectedFailure>()
const factory SettingsFailure.unexpected([
Object? error,
StackTrace? stackTrace,
]) = SettingsUnexpectedFailure;
@override
({String type, String? message}) present(TranslationsEn t) {
return switch (this) {
SettingsUnexpectedFailure() => (
type: t.failure.unexpected,
message: null,
),
};
}
}