补充提交

This commit is contained in:
DESKTOP-I3JPKHK\wy 2025-04-25 15:36:35 +08:00
parent 3a3458f34e
commit d904eb33c4
3 changed files with 8 additions and 11 deletions

View File

@ -283,6 +283,7 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
//
static const int timeoutDuration = 300;
///
void toTimer(ValueNotifier<List<dynamic>> vnHandWritings) {
timer?.cancel();
timer = Timer(const Duration(milliseconds: timeoutDuration), () {
@ -301,6 +302,8 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
Offset? lastDrop;
if (vals.isNotEmpty) {
lastDrop = vals[index] as Offset?;
///
// if (lastDrop == null) {
// index -= 1;
// if (index > -1) {
@ -461,16 +464,6 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
_activePointers = _activePointers + 1;
///
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;
},
onPointerUp: (PointerUpEvent details) {

View File

@ -5,6 +5,8 @@
import FlutterMacOS
import Foundation
import app_installer
import app_settings
import auto_updater_macos
import connectivity_plus
import device_info_plus
@ -14,6 +16,8 @@ import sqflite
import url_launcher_macos
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"))
ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))

View File

@ -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
# 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.
version: 1.0.5+6
version: 1.0.3+4
environment:
sdk: '>=3.4.1 <4.0.0'