mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
opt: notify-debugger-on-exception (#1750)
This commit is contained in:
committed by
GitHub
parent
76c2de4394
commit
0f8166620e
@@ -9,7 +9,6 @@ import 'package:PiliPlus/utils/request_utils.dart';
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
import 'package:extended_nested_scroll_view/extended_nested_scroll_view.dart';
|
||||
import 'package:fixnum/fixnum.dart';
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -102,6 +101,7 @@ class VideoReplyReplyController extends ReplyController
|
||||
|
||||
ExtendedNestedScrollController? nestedController;
|
||||
|
||||
@pragma('vm:notify-debugger-on-exception')
|
||||
void jumpToItem(int index) {
|
||||
SchedulerBinding.instance.addPostFrameCallback((_) {
|
||||
animController.forward(from: 0);
|
||||
@@ -115,9 +115,7 @@ class VideoReplyReplyController extends ReplyController
|
||||
scrollController.jumpTo(offset);
|
||||
}
|
||||
}
|
||||
} catch (_) {
|
||||
if (kDebugMode) rethrow;
|
||||
}
|
||||
} catch (_) {}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user