mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-09-05 11:56:41 +00:00
ML-268 "Not set" option is not preselected when editing a logbook photo (#269)
* removed const
This commit is contained in:
parent
78f4bf96ce
commit
49d0a2175f
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ class PickerListTile<T> extends StatelessWidget {
|
||||||
title: title,
|
title: title,
|
||||||
selectedValue: Optional(selectedValue),
|
selectedValue: Optional(selectedValue),
|
||||||
values: [
|
values: [
|
||||||
const Optional(null),
|
/// `const Optional(null)` for some reason is not equal to a non-const `Optional(null)`
|
||||||
|
// ignore: prefer_const_constructors
|
||||||
|
Optional(null),
|
||||||
...values.toSet().map((e) => Optional(e)),
|
...values.toSet().map((e) => Optional(e)),
|
||||||
],
|
],
|
||||||
titleAdapter: (context, value) => _titleAdapter(context, value.value),
|
titleAdapter: (context, value) => _titleAdapter(context, value.value),
|
||||||
|
|
Loading…
Reference in a new issue