mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-05 01:27:49 +08:00
ios bottom sheet patch
related #1906 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -10,7 +10,11 @@ $ToolTipFix = "56956c33ef102ac0b5fc46b62bd2dd9f50a86616";
|
||||
# https://github.com/flutter/flutter/issues/182281
|
||||
$NewOverScrollIndicator = "362b1de29974ffc1ed6faa826e1df870d7bec75f";
|
||||
|
||||
$BottomSheetPatch = "lib/scripts/bottom_sheet.patch"
|
||||
$BottomSheetAndroidPatch = "lib/scripts/bottom_sheet_android.patch"
|
||||
|
||||
# https://github.com/bggRGjQaUbCoE/PiliPlus/issues/1906
|
||||
$BottomSheetIOSFlutterPatch = "lib/scripts/bottom_sheet_ios_flutter.patch"
|
||||
$BottomSheetIOSPiliPlusPatch = "lib/scripts/bottom_sheet_ios_piliplus.patch"
|
||||
|
||||
$ScrollViewPatch = "lib/scripts/scroll_view.patch"
|
||||
|
||||
@@ -24,6 +28,13 @@ $ModalBarrierPatch = "lib/scripts/modal_barrier.patch"
|
||||
# https://github.com/flutter/flutter/issues/182466
|
||||
$MouseCursorPatch = "lib/scripts/mouse_cursor.patch"
|
||||
|
||||
if ($platform.ToLower() -eq "ios") {
|
||||
git apply $BottomSheetIOSPiliPlusPatch
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host "$BottomSheetIOSPiliPlusPatch applied"
|
||||
}
|
||||
}
|
||||
|
||||
Set-Location $env:FLUTTER_ROOT
|
||||
|
||||
$picks = @()
|
||||
@@ -33,11 +44,12 @@ $patches = @($ModalBarrierPatch, $TextSelectionPatch, $MouseCursorPatch)
|
||||
switch ($platform.ToLower()) {
|
||||
"android" {
|
||||
$reverts += $NewOverScrollIndicator
|
||||
$patches += $BottomSheetPatch
|
||||
$patches += $BottomSheetAndroidPatch
|
||||
$patches += $ScrollViewPatch
|
||||
}
|
||||
"ios" {
|
||||
$patches += $ScrollViewPatch
|
||||
$patches += $BottomSheetIOSFlutterPatch
|
||||
}
|
||||
"linux" {
|
||||
$picks += $ToolTipFix
|
||||
|
||||
Reference in New Issue
Block a user