flet-audio 0.1.0.dev3__py3-none-any.whl → 0.2.0.dev35__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flet_audio/__init__.py +2 -2
- flet_audio/audio.py +249 -271
- flet_audio/types.py +69 -0
- flet_audio-0.2.0.dev35.dist-info/METADATA +66 -0
- flet_audio-0.2.0.dev35.dist-info/RECORD +18 -0
- {flet_audio-0.1.0.dev3.dist-info → flet_audio-0.2.0.dev35.dist-info}/WHEEL +1 -1
- flet_audio-0.2.0.dev35.dist-info/licenses/LICENSE +201 -0
- flutter/flet_audio/lib/flet_audio.dart +1 -1
- flutter/flet_audio/lib/src/audio.dart +125 -194
- flutter/flet_audio/lib/src/extension.dart +15 -0
- flutter/flet_audio/lib/src/utils/audio.dart +9 -0
- flutter/flet_audio/pubspec.lock +161 -136
- flutter/flet_audio/pubspec.yaml +8 -3
- flet_audio-0.1.0.dev3.dist-info/METADATA +0 -43
- flet_audio-0.1.0.dev3.dist-info/RECORD +0 -15
- flutter/flet_audio/lib/src/create_control.dart +0 -20
- {flet_audio-0.1.0.dev3.dist-info → flet_audio-0.2.0.dev35.dist-info}/top_level.txt +0 -0
flutter/flet_audio/pubspec.yaml
CHANGED
|
@@ -2,7 +2,8 @@ name: flet_audio
|
|
|
2
2
|
description: Flet Audio control
|
|
3
3
|
homepage: https://flet.dev
|
|
4
4
|
repository: https://github.com/flet-dev/flet-audio/src/flutter/flet_audio
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.2.0
|
|
6
|
+
publish_to: none
|
|
6
7
|
environment:
|
|
7
8
|
sdk: '>=3.2.3 <4.0.0'
|
|
8
9
|
flutter: '>=1.17.0'
|
|
@@ -10,8 +11,12 @@ dependencies:
|
|
|
10
11
|
flutter:
|
|
11
12
|
sdk: flutter
|
|
12
13
|
collection: ^1.16.0
|
|
13
|
-
audioplayers: ^
|
|
14
|
-
flet:
|
|
14
|
+
audioplayers: ^6.4.0
|
|
15
|
+
flet:
|
|
16
|
+
git:
|
|
17
|
+
path: packages/flet
|
|
18
|
+
ref: v1
|
|
19
|
+
url: https://github.com/flet-dev/flet.git
|
|
15
20
|
dev_dependencies:
|
|
16
21
|
flutter_test:
|
|
17
22
|
sdk: flutter
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: flet-audio
|
|
3
|
-
Version: 0.1.0.dev3
|
|
4
|
-
Summary: Audio control for Flet
|
|
5
|
-
Author-email: Flet contributors <hello@flet.dev>
|
|
6
|
-
Project-URL: Homepage, https://flet.dev
|
|
7
|
-
Project-URL: Documentation, https://flet.dev/docs/controls/audio
|
|
8
|
-
Project-URL: Repository, https://github.com/flet-dev/flet-audio
|
|
9
|
-
Project-URL: Issues, https://github.com/flet-dev/flet-audio/issues
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
-
Requires-Python: >=3.8
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
Requires-Dist: flet>=0.25.1
|
|
14
|
-
|
|
15
|
-
# Flet Audio control
|
|
16
|
-
|
|
17
|
-
`Audio` control for Flet.
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
Add `flet-audio` as dependency (`pyproject.toml` or `requirements.txt`) to your Flet project.
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```py
|
|
26
|
-
|
|
27
|
-
import flet as ft
|
|
28
|
-
|
|
29
|
-
import flet_audio as fta
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def main(page: ft.Page):
|
|
33
|
-
audio1 = fta.Audio(
|
|
34
|
-
src="https://luan.xyz/files/audio/ambient_c_motion.mp3", autoplay=True
|
|
35
|
-
)
|
|
36
|
-
page.overlay.append(audio1)
|
|
37
|
-
page.add(
|
|
38
|
-
ft.Text("This is an app with background audio."),
|
|
39
|
-
ft.ElevatedButton("Stop playing", on_click=lambda _: audio1.pause()),
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
ft.app(main)
|
|
43
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
flet_audio/__init__.py,sha256=06mfUVaDQEVi1LHKi-M0QC3dwANgKmOVOOKRx6JwWKI,147
|
|
2
|
-
flet_audio/audio.py,sha256=SJ15bKiDP7oDJhRg78CP1UAQhPNI7UZgDdWhj8aMbUw,8823
|
|
3
|
-
flutter/flet_audio/CHANGELOG.md,sha256=66sWepPaeTc9_lzcYIGU55AlxSU5Z1XVtknXpzd_-p8,40
|
|
4
|
-
flutter/flet_audio/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
5
|
-
flutter/flet_audio/README.md,sha256=BEITqZ4okarTGCquI4ii6tdffGm2qyxMkMZbsedCwLQ,60
|
|
6
|
-
flutter/flet_audio/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
|
|
7
|
-
flutter/flet_audio/pubspec.lock,sha256=bbzfXZEJ0Rtk69vgke9WDF3PWu88fQmqZkuvT0OStbw,24670
|
|
8
|
-
flutter/flet_audio/pubspec.yaml,sha256=7cPhnVgP-HwH12ZM21ZJD5YvFryebZ0k3f8HyVCie6Y,402
|
|
9
|
-
flutter/flet_audio/lib/flet_audio.dart,sha256=JH7ukuJeIBlZgn3VUvaGKC-MJdqTPNJLIeeo3E98qy0,93
|
|
10
|
-
flutter/flet_audio/lib/src/audio.dart,sha256=b4YNKucDyIkPoKS8aKXXU1X2wg2hCzRY3mNPcO4r0-s,8422
|
|
11
|
-
flutter/flet_audio/lib/src/create_control.dart,sha256=RtKBnV4KO8LIBDraM_QYZ03kz17HgVAEkjdnJPCj_EA,427
|
|
12
|
-
flet_audio-0.1.0.dev3.dist-info/METADATA,sha256=1WPG4kZix71edzoW9IMUCbVwJZT7R7r3yGDq6TINjAs,1090
|
|
13
|
-
flet_audio-0.1.0.dev3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
14
|
-
flet_audio-0.1.0.dev3.dist-info/top_level.txt,sha256=hZbGOXppSiKRUWJf1ZRlBKMyfijq6Y-8DffGOh10Wq4,19
|
|
15
|
-
flet_audio-0.1.0.dev3.dist-info/RECORD,,
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import 'package:flet/flet.dart';
|
|
2
|
-
|
|
3
|
-
import 'audio.dart';
|
|
4
|
-
|
|
5
|
-
CreateControlFactory createControl = (CreateControlArgs args) {
|
|
6
|
-
switch (args.control.type) {
|
|
7
|
-
case "audio":
|
|
8
|
-
return AudioControl(
|
|
9
|
-
parent: args.parent,
|
|
10
|
-
control: args.control,
|
|
11
|
-
nextChild: args.nextChild,
|
|
12
|
-
backend: args.backend);
|
|
13
|
-
default:
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
void ensureInitialized() {
|
|
19
|
-
// nothing to initialize
|
|
20
|
-
}
|
|
File without changes
|