Skip to content

Commit

Permalink
chore: 跳过检查
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Dec 4, 2024
1 parent a1c8b95 commit 879dd4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/storage/view/widgets/scan_qr_icon_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ class _ScanQRPageState extends State<ScanQRPage> {
setState(() {
jumped = true;
});
// TODO: 弄清楚这里是什么情况,没看懂哪里来的 async gap。
// ignore: use_build_context_synchronously
MyRouterDelegate.of(context)
.push(StorageDetailPage(storageId: storageId));
// 只有安卓设备支持暂停相机
Expand Down
3 changes: 3 additions & 0 deletions lib/storage/view/widgets/storage_picker_formfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ class _StorageFieldState extends FormFieldState<Storage> {
}

void _hideKeyboard() {
// ignore: use_build_context_synchronously
Future.microtask(() => FocusScope.of(context).requestFocus(FocusNode()));
}

Expand All @@ -242,6 +243,8 @@ class _StorageFieldState extends FormFieldState<Storage> {
.storages(key: '', cache: false);
if (context.mounted) {
final newValue = await showDialog<Storage>(
// TODO: 这里也不清楚,明明已经检查过 mounted 了。
// ignore: use_build_context_synchronously
context: context,
builder: (context) {
return StorageDialog(
Expand Down

0 comments on commit 879dd4c

Please sign in to comment.