FLUTTER ECOSYSTEM

mkalmousli/FloatingVolume

使用浮動滑桿在 Android 上控制設備音量。

浮動量 專案封面
Stars
24
Forks
4
最近推送(UTC)
2026年4月21日
專案狀態
未封存
Mohamad Almousli GitHub avatar
GITHUB User

Mohamad Almousli ↗

語言KotlinDartPythonDockerfile

技術主題

相關套件與範例

使用的依賴

依賴清單 16 項

App 分類

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

Current F-Droid version Current GitHub version

https://raw.githubusercontent.com/mkalmousli/FloatingVolume/HEAD/logo.svg

Floating Volume

Control your device’s volume anywhere with a floating slider on Android.

Get it

F-Droid is the official and recommend way to get Floating Volume:

https://f-droid.org/badge/get-it-on.svg

F-Droid takes a while to publish new versions, if you want to get latest version, you can get it from GitHub releases:

https://raw.githubusercontent.com/mkalmousli/FloatingVolume/HEAD/get_it_on_github.png

Screenshots

https://raw.githubusercontent.com/mkalmousli/FloatingVolume/HEAD/screenshots/output/01.png https://raw.githubusercontent.com/mkalmousli/FloatingVolume/HEAD/screenshots/output/02.png https://raw.githubusercontent.com/mkalmousli/FloatingVolume/HEAD/screenshots/output/03.png https://raw.githubusercontent.com/mkalmousli/FloatingVolume/HEAD/screenshots/output/04.png https://raw.githubusercontent.com/mkalmousli/FloatingVolume/HEAD/screenshots/output/05.png https://raw.githubusercontent.com/mkalmousli/FloatingVolume/HEAD/screenshots/output/06.png

Build

This app uses Pigeon to generate Dart and Kotlin code for Flutter → Android communication.

  1. Generate required code with:
dart run pigeon --input pigeons/native_api.dart
dart run pigeon --input pigeons/native_events.dart
  1. Create key.properties in android/, here is an example:
storePassword=your_password
keyPassword=your_password
keyAlias=key0
storeFile=/path/to/your_keystore.jks

[!NOTE]
Make sure to build the app while having .git, also not a from shallow clone or from a tarball.

  1. Then, you should be able to build it with flutter:
flutter build apk --release

The output will be in build/app/outputs/flutter-apk/app-release.apk.

This is not considered a reproducible build, as it depends on the environment, such as the OS, the version of the JDK, the location of the source code, and so on.

Look below if you want to build it in a reproducible way.

Reproducible Build

This app is meant to be a Reproducible build for F-Droid.

The building environment does play a crucial role in the build process, for example which OS, where the source code is located, or the version of the JDK used.

To make this easier, for me to build, I have created a simple script that tries to mimic the F-Droid build environment as closely as possible.

docker build -t floating_volume .
docker run --rm -v $(pwd):/tmp/app floating_volume /tmp/app/build.py

This will result in app.apk in the current directory, which is a reproducible build of Floating Volume.

License

GNU GPLv3 Image

Floating Volume is Free Software: You can use, study, share, and improve it at will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.