mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
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:
parent
6b99f02232
commit
e7aace436d
125 changed files with 859 additions and 632 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue