mirror of
https://github.com/localsend/localsend.git
synced 2026-04-21 15:39:15 -04:00
23 lines
889 B
Dart
23 lines
889 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:localsend_app/gen/strings.g.dart';
|
|
|
|
part 'settings.freezed.dart';
|
|
|
|
@freezed
|
|
class Settings with _$Settings {
|
|
const factory Settings({
|
|
required String showToken, // the token to show / maximize the window because only one instance is allowed
|
|
required String alias,
|
|
required ThemeMode theme,
|
|
required AppLocale? locale,
|
|
required int port,
|
|
required String? destination, // null = default
|
|
required bool saveToGallery, // only Android, iOS
|
|
required bool quickSave, // automatically accept file requests
|
|
required bool minimizeToTray, // minimize to tray instead of exiting the app
|
|
required bool autoStartLaunchMinimized, // start hidden in tray (only available when launchAtStartup is true)
|
|
required bool https,
|
|
}) = _Settings;
|
|
}
|