补充提交
This commit is contained in:
parent
3a3458f34e
commit
d904eb33c4
|
|
@ -283,6 +283,7 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
|
||||||
// 定时器超时时间,单位为毫秒
|
// 定时器超时时间,单位为毫秒
|
||||||
static const int timeoutDuration = 300;
|
static const int timeoutDuration = 300;
|
||||||
|
|
||||||
|
/// 解决多指截屏问题后 无法进入手指抬起回调导致无法再次进行批注
|
||||||
void toTimer(ValueNotifier<List<dynamic>> vnHandWritings) {
|
void toTimer(ValueNotifier<List<dynamic>> vnHandWritings) {
|
||||||
timer?.cancel();
|
timer?.cancel();
|
||||||
timer = Timer(const Duration(milliseconds: timeoutDuration), () {
|
timer = Timer(const Duration(milliseconds: timeoutDuration), () {
|
||||||
|
|
@ -301,6 +302,8 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
|
||||||
Offset? lastDrop;
|
Offset? lastDrop;
|
||||||
if (vals.isNotEmpty) {
|
if (vals.isNotEmpty) {
|
||||||
lastDrop = vals[index] as Offset?;
|
lastDrop = vals[index] as Offset?;
|
||||||
|
|
||||||
|
/// 已经断行的不需要获取
|
||||||
// if (lastDrop == null) {
|
// if (lastDrop == null) {
|
||||||
// index -= 1;
|
// index -= 1;
|
||||||
// if (index > -1) {
|
// if (index > -1) {
|
||||||
|
|
@ -461,16 +464,6 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
|
||||||
_activePointers = _activePointers + 1;
|
_activePointers = _activePointers + 1;
|
||||||
/// 解决多指截屏问题后 无法进入手指抬起回调导致无法再次进行批注
|
/// 解决多指截屏问题后 无法进入手指抬起回调导致无法再次进行批注
|
||||||
toTimer(vnHandWritings);
|
toTimer(vnHandWritings);
|
||||||
// timer?.cancel();
|
|
||||||
// timer = Timer(const Duration(milliseconds: timeoutDuration), () {
|
|
||||||
// if (_activePointers > 2) {
|
|
||||||
// _activePointers = 0;
|
|
||||||
// if (vnHandWritings.value.last != null) {
|
|
||||||
// vnHandWritings.value.add(null); // 增加空点以分隔不同的线段
|
|
||||||
// sateData.handwritings = vnHandWritings.value; // 添加笔迹数据
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
sateData.panQuestView = true;
|
sateData.panQuestView = true;
|
||||||
},
|
},
|
||||||
onPointerUp: (PointerUpEvent details) {
|
onPointerUp: (PointerUpEvent details) {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
import FlutterMacOS
|
import FlutterMacOS
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
|
import app_installer
|
||||||
|
import app_settings
|
||||||
import auto_updater_macos
|
import auto_updater_macos
|
||||||
import connectivity_plus
|
import connectivity_plus
|
||||||
import device_info_plus
|
import device_info_plus
|
||||||
|
|
@ -14,6 +16,8 @@ import sqflite
|
||||||
import url_launcher_macos
|
import url_launcher_macos
|
||||||
|
|
||||||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||||
|
AppInstallerPlugin.register(with: registry.registrar(forPlugin: "AppInstallerPlugin"))
|
||||||
|
AppSettingsPlugin.register(with: registry.registrar(forPlugin: "AppSettingsPlugin"))
|
||||||
AutoUpdaterMacosPlugin.register(with: registry.registrar(forPlugin: "AutoUpdaterMacosPlugin"))
|
AutoUpdaterMacosPlugin.register(with: registry.registrar(forPlugin: "AutoUpdaterMacosPlugin"))
|
||||||
ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))
|
ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))
|
||||||
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
|
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.5+6
|
version: 1.0.3+4
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.4.1 <4.0.0'
|
sdk: '>=3.4.1 <4.0.0'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue