Add silent start for desktop

This commit is contained in:
problematicconsumer
2023-07-15 18:00:44 +03:30
parent 292ed96d2a
commit a1209f5453
13 changed files with 188 additions and 67 deletions

View File

@@ -0,0 +1,17 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'general_prefs.freezed.dart';
part 'general_prefs.g.dart';
@freezed
class GeneralPrefs with _$GeneralPrefs {
const GeneralPrefs._();
const factory GeneralPrefs({
// desktop only
@Default(false) bool silentStart,
}) = _GeneralPrefs;
factory GeneralPrefs.fromJson(Map<String, dynamic> json) =>
_$GeneralPrefsFromJson(json);
}