mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
chore: enable use_build_context_synchronously lint (#30367)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
56ce7176b1
commit
405020eeee
59 changed files with 552 additions and 309 deletions
|
|
@ -90,7 +90,7 @@ class _DateTimePicker extends HookWidget {
|
|||
firstDate: DateTime(1800),
|
||||
lastDate: now,
|
||||
);
|
||||
if (newDate == null) {
|
||||
if (newDate == null || !context.mounted) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue