File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Quick - Down - Shifter APP
22
33QS DS Application
4+
5+
6+ #Corect settings
7+
8+ Windows:
9+ Change in windows/runner/Runner.rc: VALUE "FileDescription", "QS-DS-App" "\0"
10+ Logo: windows/runner/resources - .ico 3.0 format
11+
12+
13+
14+ MacOS:
15+ Logo: macos/Runner/Assets.xcassets/AppIcon.appiconset
16+ Add in: /macos/Runner/DebugProfile.entitlements /macos/Runner/Release.entitlements:
17+ <key >com.apple.security.device.serial</key >
18+ <true />
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22import '../model/setting.dart' ;
33
44class SettingsRepository {
5- static final SettingsRepository instance = SettingsRepository . internal () ;
5+ static SettingsRepository ? instance;
66 late final List <Setting > settingsList;
77 late final List <Setting > readingsList;
88
@@ -82,8 +82,11 @@ class SettingsRepository {
8282 final Setting postDelayQS = Setting (SettingType .PostDelayQS , '500' );
8383 final Setting postDelayDS = Setting (SettingType .PostDelayDS , '500' );
8484
85- factory SettingsRepository () {
86- return instance;
85+ factory SettingsRepository ({bool ? newSettings}) {
86+ if (newSettings == true || instance == null ) {
87+ instance = SettingsRepository .internal ();
88+ }
89+ return instance! ;
8790 }
8891
8992 SettingsRepository .internal () {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
2121 @override
2222 void initState () {
2323 super .initState ();
24- SettingsRepository ();
24+ SettingsRepository (newSettings : true );
2525 SerialPortUtils ().setNotify (() => refresh ());
2626 }
2727
You can’t perform that action at this time.
0 commit comments