@@ -27,7 +27,7 @@ class SettingsScreen extends StatelessWidget {
2727 value: vm,
2828 builder: (context, child) => Scaffold (
2929 appBar: AppBar (title: Text (context.translate ('Settings' )), elevation: 1 ),
30- body: SafeArea (child : _buildSettingsList (context) ),
30+ body: _buildSettingsList (context),
3131 ),
3232 );
3333 }
@@ -84,18 +84,11 @@ class SettingsScreen extends StatelessWidget {
8484 tiles: [
8585 SettingsTile .navigation (
8686 title: Text (context.translate ('Name' )),
87- trailing : Text (lvm.name),
87+ value : Text (lvm.name),
8888 onPressed: (bc) => _showNameDialog (bc, vm),
8989 ),
90- SettingsTile (
91- title: Text (context.translate ('Manufacturer & Model' )),
92- descriptionInlineIos: true ,
93- description: Row (
94- spacing: 8 ,
95- mainAxisAlignment: MainAxisAlignment .start,
96- children: [Text (lvm.borneoInfo.manufName), Text (lvm.borneoInfo.modelName)],
97- ),
98- ),
90+ SettingsTile (title: Text (context.translate ('Manufacturer' )), trailing: Text (lvm.borneoInfo.modelName)),
91+ SettingsTile (title: Text (context.translate ('Model' )), trailing: Text (lvm.borneoInfo.manufName)),
9992 SettingsTile (
10093 title: Text (context.translate ('Serial Number' )),
10194 trailing: Text (lvm.borneoInfo.serno.substring (0 , 12 )),
@@ -119,6 +112,7 @@ class SettingsScreen extends StatelessWidget {
119112 ),
120113 ],
121114 ),
115+
122116 SettingsSection (
123117 title: Text (context.translate ('DEVICE STATUS' )),
124118 tiles: [
@@ -137,7 +131,7 @@ class SettingsScreen extends StatelessWidget {
137131 ),
138132 SettingsTile .navigation (
139133 title: Text (context.translate ('Power status at startup' )),
140- trailing : Text (_formatPowerBehavior (context, lvm.powerBehavior)),
134+ value : Text (_formatPowerBehavior (context, lvm.powerBehavior)),
141135 enabled: lvm.canUpdatePowerBehavior,
142136 onPressed: (bc) => _showPowerBehaviorPicker (bc, vm),
143137 ),
@@ -158,7 +152,7 @@ class SettingsScreen extends StatelessWidget {
158152 title: Text (context.translate ('Device Location' )),
159153 description: Text (context.translate ('Geo location' )),
160154 descriptionInlineIos: true ,
161- trailing : lvm.location != null
155+ value : lvm.location != null
162156 ? Text ("(${lvm .location !.lat .toStringAsFixed (0 )}, ${lvm .location !.lng .toStringAsFixed (0 )})" )
163157 : Text (context.translate ('Unknown' )),
164158 enabled: lvm.canUpdateGeoLocation,
@@ -170,13 +164,13 @@ class SettingsScreen extends StatelessWidget {
170164 ),
171165 SettingsTile .navigation (
172166 title: Text (context.translate ('Correction curve' )),
173- trailing : Text (_formatCorrectionMethod (context, lvm.correctionMethod)),
167+ value : Text (_formatCorrectionMethod (context, lvm.correctionMethod)),
174168 enabled: lvm.canUpdateCorrectionMethod,
175169 onPressed: (bc) => _showCorrectionMethodPicker (bc, vm),
176170 ),
177171 SettingsTile .navigation (
178172 title: Text (context.translate ('Temporary light duration' )),
179- trailing : Text (_formatDuration (context, lvm.temporaryDuration)),
173+ value : Text (_formatDuration (context, lvm.temporaryDuration)),
180174 enabled: lvm.canUpdateTemporaryDuration,
181175 onPressed: (bc) => _showTemporaryDurationPicker (bc, vm),
182176 ),
@@ -199,13 +193,13 @@ class SettingsScreen extends StatelessWidget {
199193 tiles: [
200194 SettingsTile .navigation (
201195 title: Text (context.translate ('Fan mode' )),
202- trailing : Text (_formatFanMode (context, lvm.fanMode)),
196+ value : Text (_formatFanMode (context, lvm.fanMode)),
203197 enabled: lvm.canUpdateFanMode,
204198 onPressed: (bc) => _showFanModePicker (bc, vm),
205199 ),
206200 SettingsTile .navigation (
207201 title: Text (context.translate ('Manual fan power' )),
208- trailing : Text ('${lvm .manualFanPower }%' ),
202+ value : Text ('${lvm .manualFanPower }%' ),
209203 enabled: lvm.canUpdateManualFanPower,
210204 onPressed: lvm.canUpdateManualFanPower
211205 ? (bc) => _showManualFanPowerDialog (bc, vm, lvm.manualFanPower)
0 commit comments