Skip to content

Commit

Permalink
fix: Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mengyanshou committed Jan 27, 2024
1 parent d47f2b3 commit f81267d
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 180 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 2.2.7
- 尝试修复布局异常,高分辨率异常的问题
- 修复登录失败的问题,修复部分图片加载失败的问题

## 2.2.6
- 修复域名过期,无法登录和资源无法加载的问题
Expand Down
12 changes: 6 additions & 6 deletions lib/modules/qrscan_page.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'dart:typed_data';

import 'package:flutter/material.dart';
import 'package:get/get.dart';
Expand All @@ -18,18 +19,17 @@ class _QRScanPageState extends State<QRScanPage> {
alignment: Alignment.center,
children: [
MobileScanner(
allowDuplicates: false,
// controller: MobileScannerController(
// facing: CameraFacing.back,
// torchEnabled: true,
// ),
onDetect: (barcode, args) {
if (barcode.rawValue == null) {
debugPrint('Failed to scan Barcode');
} else {
onDetect: (capture) {
final List<Barcode> barcodes = capture.barcodes;
final Uint8List? image = capture.image;
for (final barcode in barcodes) {
final String? code = barcode.rawValue;
Get.back(result: code);
debugPrint('Barcode found! $code');
debugPrint('Barcode found! ${barcode.rawValue}');
}
},
),
Expand Down
14 changes: 7 additions & 7 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PODS:
- file_selector_macos (0.0.1):
- FlutterMacOS
- FlutterMacOS (1.0.0)
- mobile_scanner (0.0.1):
- mobile_scanner (3.5.6):
- FlutterMacOS
- path_provider_foundation (0.0.1):
- Flutter
Expand All @@ -31,7 +31,7 @@ DEPENDENCIES:
- file_selector_macos (from `Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos`)
- FlutterMacOS (from `Flutter/ephemeral`)
- mobile_scanner (from `Flutter/ephemeral/.symlinks/plugins/mobile_scanner/macos`)
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/macos`)
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
- screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`)
- tray_manager (from `Flutter/ephemeral/.symlinks/plugins/tray_manager/macos`)
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
Expand All @@ -52,7 +52,7 @@ EXTERNAL SOURCES:
mobile_scanner:
:path: Flutter/ephemeral/.symlinks/plugins/mobile_scanner/macos
path_provider_foundation:
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/macos
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
screen_retriever:
:path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos
tray_manager:
Expand All @@ -68,13 +68,13 @@ SPEC CHECKSUMS:
clipboard_watcher: a71da520051c24c1b969a411b3e152d4dcc93ca5
desktop_drop: 69eeff437544aa619c8db7f4481b3a65f7696898
device_info_plus: 5401765fde0b8d062a2f8eb65510fb17e77cf07f
file_selector_macos: 0f85c1108e2fd597b58246bc0b0c1cb483d7593b
file_selector_macos: 468fb6b81fac7c0e88d71317f3eec34c3b008ff9
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
mobile_scanner: 35dc92ffdbd7934b0dbc411b1c731bc2ef23c2dc
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
mobile_scanner: 54ceceae0c8da2457e26a362a6be5c61154b1829
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38
tray_manager: 9064e219c56d75c476e46b9a21182087930baf90
url_launcher_macos: 5335912b679c073563f29d89d33d10d459f95451
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95
wakelock_macos: bc3f2a9bd8d2e6c89fee1e1822e7ddac3bd004a9
window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8

Expand Down
Loading

0 comments on commit f81267d

Please sign in to comment.