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:
shenlong 2026-07-31 01:40:36 +05:30 committed by GitHub
parent 56ce7176b1
commit 405020eeee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
59 changed files with 552 additions and 309 deletions

View file

@ -90,7 +90,7 @@ class _DateTimePicker extends HookWidget {
firstDate: DateTime(1800),
lastDate: now,
);
if (newDate == null) {
if (newDate == null || !context.mounted) {
return;
}