disable: permission handler for windows
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -171,6 +171,12 @@ jobs:
|
|||||||
if: ${{ startsWith(matrix.platform,'windows') }}
|
if: ${{ startsWith(matrix.platform,'windows') }}
|
||||||
run: |
|
run: |
|
||||||
(Get-Content -Path "pubspec.yaml") -notmatch "permission_handler" | Set-Content -Path "pubspec.yaml"
|
(Get-Content -Path "pubspec.yaml") -notmatch "permission_handler" | Set-Content -Path "pubspec.yaml"
|
||||||
|
(Get-Content -Path "lib\features\profile\add\add_profile_modal.dart") -notmatch "qr_code_scanner_screen" | Set-Content -Path "lib\features\profile\add\add_profile_modal.dart"
|
||||||
|
(Get-Content -Path lib\features\profile\add\add_profile_modal.dart) -replace 'await QRCodeScannerScreen\(\).open\(context\);', 'null;' | Set-Content -Path lib\features\profile\add\add_profile_modal.dart
|
||||||
|
Remove-Item -Path "lib\features\common\qr_code_scanner_screen.dart"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Prepare for ${{ matrix.platform }}
|
- name: Prepare for ${{ matrix.platform }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -120,14 +120,12 @@ class AddProfileModal extends HookConsumerWidget {
|
|||||||
icon: FluentIcons.qr_code_24_regular,
|
icon: FluentIcons.qr_code_24_regular,
|
||||||
size: buttonWidth,
|
size: buttonWidth,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
final captureResult =
|
final cr =
|
||||||
await const QRCodeScannerScreen()
|
await QRCodeScannerScreen().open(context);
|
||||||
.open(context);
|
|
||||||
if (captureResult == null) return;
|
if (cr == null) return;
|
||||||
if (addProfileState.isLoading) return;
|
if (addProfileState.isLoading) return;
|
||||||
ref
|
ref.read(addProfileProvider.notifier).add(cr);
|
||||||
.read(addProfileProvider.notifier)
|
|
||||||
.add(captureResult);
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user