mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -97,7 +97,12 @@ jobs:
|
|||||||
|
|
||||||
- name: apply modal barrier patch
|
- name: apply modal barrier patch
|
||||||
working-directory: ${{ env.FLUTTER_ROOT }}
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
run: git apply $GITHUB_WORKSPACE/lib/scripts/modal-barrier-patch.diff || true
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/modal_barrier_patch.diff || true
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: apply mouse cursor patch
|
||||||
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/mouse_cursor_patch.diff || true
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Write key
|
- name: Write key
|
||||||
|
|||||||
7
.github/workflows/ios.yml
vendored
7
.github/workflows/ios.yml
vendored
@@ -32,7 +32,12 @@ jobs:
|
|||||||
|
|
||||||
- name: apply modal barrier patch
|
- name: apply modal barrier patch
|
||||||
working-directory: ${{ env.FLUTTER_ROOT }}
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
run: git apply $GITHUB_WORKSPACE/lib/scripts/modal-barrier-patch.diff || true
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/modal_barrier_patch.diff || true
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: apply mouse cursor patch
|
||||||
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/mouse_cursor_patch.diff || true
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Build iOS
|
- name: Build iOS
|
||||||
|
|||||||
7
.github/workflows/linux_x64.yml
vendored
7
.github/workflows/linux_x64.yml
vendored
@@ -53,7 +53,12 @@ jobs:
|
|||||||
|
|
||||||
- name: apply modal barrier patch
|
- name: apply modal barrier patch
|
||||||
working-directory: ${{ env.FLUTTER_ROOT }}
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
run: git apply $GITHUB_WORKSPACE/lib/scripts/modal-barrier-patch.diff || true
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/modal_barrier_patch.diff || true
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: apply mouse cursor patch
|
||||||
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/mouse_cursor_patch.diff || true
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
#TODO: deb and rpm packages need to be build
|
#TODO: deb and rpm packages need to be build
|
||||||
|
|||||||
7
.github/workflows/mac.yml
vendored
7
.github/workflows/mac.yml
vendored
@@ -32,7 +32,12 @@ jobs:
|
|||||||
|
|
||||||
- name: apply modal barrier patch
|
- name: apply modal barrier patch
|
||||||
working-directory: ${{ env.FLUTTER_ROOT }}
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
run: git apply $GITHUB_WORKSPACE/lib/scripts/modal-barrier-patch.diff || true
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/modal_barrier_patch.diff || true
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: apply mouse cursor patch
|
||||||
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/mouse_cursor_patch.diff || true
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Build Mac
|
- name: Build Mac
|
||||||
|
|||||||
7
.github/workflows/win_x64.yml
vendored
7
.github/workflows/win_x64.yml
vendored
@@ -28,10 +28,15 @@ jobs:
|
|||||||
|
|
||||||
- name: apply modal barrier patch
|
- name: apply modal barrier patch
|
||||||
working-directory: ${{ env.FLUTTER_ROOT }}
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
run: git apply $env:GITHUB_WORKSPACE\lib\scripts\modal-barrier-patch.diff || true
|
run: git apply $env:GITHUB_WORKSPACE\lib\scripts\modal_barrier_patch.diff || true
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: apply mouse cursor patch
|
||||||
|
working-directory: ${{ env.FLUTTER_ROOT }}
|
||||||
|
run: git apply $GITHUB_WORKSPACE/lib/scripts/mouse_cursor_patch.diff || true
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Add fastforge and Inno Setup
|
- name: Add fastforge and Inno Setup
|
||||||
run: |
|
run: |
|
||||||
dart pub global activate fastforge
|
dart pub global activate fastforge
|
||||||
|
|||||||
13
lib/scripts/mouse_cursor_patch.diff
Normal file
13
lib/scripts/mouse_cursor_patch.diff
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/packages/flutter/lib/src/widgets/widget_state.dart b/packages/flutter/lib/src/widgets/widget_state.dart
|
||||||
|
index 1b683c51b66..b7277a49c75 100644
|
||||||
|
--- a/packages/flutter/lib/src/widgets/widget_state.dart
|
||||||
|
+++ b/packages/flutter/lib/src/widgets/widget_state.dart
|
||||||
|
@@ -448,7 +448,7 @@ abstract class WidgetStateMouseCursor extends MouseCursor
|
||||||
|
if (states.contains(WidgetState.disabled)) {
|
||||||
|
return SystemMouseCursors.basic;
|
||||||
|
}
|
||||||
|
- return kIsWeb ? SystemMouseCursors.click : SystemMouseCursors.basic;
|
||||||
|
+ return SystemMouseCursors.click;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// A mouse cursor for widgets related to text, which resolves differently
|
||||||
Reference in New Issue
Block a user