mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-08-05 04:36:41 +00:00
typos
This commit is contained in:
parent
882421ed78
commit
435a551235
2 changed files with 9 additions and 3 deletions
|
@ -110,7 +110,13 @@ class UserPreferencesService {
|
|||
_sharedPreferences.setString(cameraFeaturesKey, json.encode(value.toJson()));
|
||||
|
||||
int? get cameraFocalLength => _sharedPreferences.getInt(cameraFocalLengthKey);
|
||||
set cameraFocalLength(int? value) => _sharedPreferences.setInt(cameraFocalLengthKey, value!);
|
||||
set cameraFocalLength(int? value) {
|
||||
if (value != null) {
|
||||
_sharedPreferences.setInt(cameraFocalLengthKey, value);
|
||||
} else {
|
||||
_sharedPreferences.remove(cameraFocalLengthKey);
|
||||
}
|
||||
}
|
||||
|
||||
bool get caffeine => _sharedPreferences.getBool(caffeineKey) ?? false;
|
||||
set caffeine(bool value) => _sharedPreferences.setBool(caffeineKey, value);
|
||||
|
|
|
@ -60,8 +60,8 @@ class _EquipmentProfilesScreenState extends State<EquipmentProfilesScreen> with
|
|||
|
||||
class _EquipmentProfilesListBuilder extends StatelessWidget {
|
||||
final List<EquipmentProfile> values;
|
||||
final void Function(EquipmentProfile film) onEdit;
|
||||
final void Function(EquipmentProfile film, bool value) onCheckbox;
|
||||
final void Function(EquipmentProfile profile) onEdit;
|
||||
final void Function(EquipmentProfile profile, bool value) onCheckbox;
|
||||
|
||||
const _EquipmentProfilesListBuilder({
|
||||
required this.values,
|
||||
|
|
Loading…
Reference in a new issue