chore(mobile): Apply stricter linting rules for correctness (#30372)

* chore(mobile): Apply stricter linting rules for correctness

* Added discarded_futures rule
This commit is contained in:
Adam Gastineau 2026-07-30 12:39:24 -07:00 committed by GitHub
parent 6b99f02232
commit e7aace436d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
125 changed files with 859 additions and 632 deletions

View file

@ -1,3 +1,5 @@
import 'dart:async';
import 'package:collection/collection.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
@ -114,7 +116,7 @@ class DropdownSearchMenu<T> extends HookWidget {
final bool highlight = AutocompleteHighlightedOption.of(context) == index;
if (highlight) {
SchedulerBinding.instance.addPostFrameCallback((Duration timeStamp) {
Scrollable.ensureVisible(context, alignment: 0.5);
unawaited(Scrollable.ensureVisible(context, alignment: 0.5));
}, debugLabel: 'AutocompleteOptions.ensureVisible');
}
return Container(