diff --git a/.gitea/workflows/android.yml b/.gitea/workflows/android.yml index f129533..63e91f1 100644 --- a/.gitea/workflows/android.yml +++ b/.gitea/workflows/android.yml @@ -41,7 +41,7 @@ jobs: TAR_OPTIONS: --no-same-owner - name: build apk - run: flutter build apk --release + run: flutter build apk --release --split-per-abi -v - name: release-build uses: akkuman/gitea-release-action@v1 @@ -49,7 +49,9 @@ jobs: NODE_OPTIONS: '--experimental-fetch' with: files: |- - build/app/outputs/flutter-apk/app-release.apk + build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk + build/app/outputs/flutter-apk/app-arm64-v8a-release.apk + build/app/outputs/flutter-apk/app-x86_64-release.apk token: '${{secrets.RELEASE_TOKEN}}' - name: upload apk to f-droid server @@ -57,5 +59,5 @@ jobs: BUILD_NUMBER=$(grep '^version:' pubspec.yaml | sed 's/.*+//') curl -X POST "https://flumm.io/pullfdroid.php" \ -F "token=${{ secrets.PULLER_TOKEN }}" \ - -F "apk=@build/app/outputs/flutter-apk/app-release.apk" \ + -F "apk=@build/app/outputs/flutter-apk/app-arm64-v8a-release.apk" \ -F "build=$BUILD_NUMBER" diff --git a/lib/screens/mediadetail.dart b/lib/screens/mediadetail.dart index d24b970..060ad89 100644 --- a/lib/screens/mediadetail.dart +++ b/lib/screens/mediadetail.dart @@ -359,10 +359,13 @@ class _MediaDetailScreenState extends State { } final MediaItem currentItem = mediaController.items[_currentIndex.value]; + + final bool hasSoftButtons = MediaQuery.of(context).padding.bottom > 24.0; + return DraggableScrollableSheet( - initialChildSize: 0.11, - minChildSize: 0.11, - maxChildSize: 0.245, + initialChildSize: hasSoftButtons ? 0.11 : 0.2, + minChildSize: hasSoftButtons ? 0.11 : 0.2, + maxChildSize: hasSoftButtons ? 0.245 : 0.2, snap: true, builder: (context, scrollController) => ListView( controller: scrollController, diff --git a/pubspec.yaml b/pubspec.yaml index 2f8e0cd..6a402f1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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.4.6+67 +version: 1.4.7+68 environment: sdk: ^3.9.0-100.2.beta