-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Playlist support. Play whole book instead of a chapter.
README.md updated. LICENSE added. Bug fixes, code improvements and more.
- Loading branch information
1 parent
7ffbb7d
commit bdc9a19
Showing
22 changed files
with
825 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Shokhrukhbek Yuldoshev | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,158 @@ | ||
# audiobooks | ||
# 🎧📕 Audiobooks | ||
|
||
A new Flutter project. | ||
Listen to your favorite audiobooks for free! Immerse yourself in the world of audiobooks with our app, built on Clean Architecture principles. Enjoy a vast selection of audiobooks, all while benefiting from a scalable, maintainable, and future-proof app structure. | ||
|
||
## Getting Started | ||
NOTE: This app is still in development. iOS version may not work as expected. | ||
|
||
This project is a starting point for a Flutter application. | ||
## 📱 Platforms | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
- Android | ||
- iOS | ||
|
||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) | ||
## ✨ Features | ||
|
||
For help getting started with Flutter development, view the | ||
[online documentation](https://docs.flutter.dev/), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
- [x] Audio playback online | ||
- [x] Download audiobooks | ||
- [x] Play downloaded audiobooks | ||
- [x] Delete downloaded audiobooks | ||
- [x] Background audio | ||
- [x] Notification controls | ||
- [x] Lock screen controls | ||
- [x] Play, pause, skip, previous, seek, rewind | ||
- [x] Shuffle and repeat | ||
- [ ] Search for audiobooks | ||
- [x] Playlists (whole book) | ||
- [ ] Favorites | ||
- [ ] Sleep timer | ||
- [x] Settings | ||
- [x] Themes (Dark, Light, System) | ||
|
||
## 📸 Screenshots | ||
|
||
<!-- Variables --> | ||
|
||
[home-light]: screenshots/home-light.jpg 'Light theme' | ||
[home-dark]: screenshots/home-dark.jpg 'Dark theme' | ||
[audiobook-details]: screenshots/audiobook-details.jpg 'Audiobook details' | ||
[audiobook-details-scroll]: screenshots/audiobook-details-scroll.jpg 'Audiobook details scroll' | ||
[player]: screenshots/player.jpg 'Player' | ||
[settings]: screenshots/settings.jpg 'Settings' | ||
|
||
<!-- Table --> | ||
|
||
| Light theme | Dark theme | Audiobook details | | ||
| :-----------------------: | :---------------------: | --------------------------------------- | | ||
| ![home-light][home-light] | ![home-dark][home-dark] | ![audiobook-details][audiobook-details] | | ||
|
||
| Audiobook details scroll | Player | Settings | | ||
| ----------------------------------------------------- | ----------------- | --------------------- | | ||
| ![audiobook-details-scroll][audiobook-details-scroll] | ![player][player] | ![settings][settings] | | ||
|
||
## 📚 Dependencies | ||
|
||
| Name | Version | Description | | ||
| ----------------------------------------------------------------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| [connectivity_plus](https://pub.dev/packages/connectivity_plus) | 6.0.1 | A Flutter plugin for discovering network connectivity configurations: Wi-Fi, mobile, etc. | | ||
| [dio](https://pub.dev/packages/dio) | 5.4.1 | A powerful package for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout, etc. | | ||
| [get_it](https://pub.dev/packages/get_it) | 7.6.7 | Simple service locator for Dart and Flutter projects and works with all kinds of objects: singletons, factories, lazy singletons, etc. | | ||
| [bloc](https://pub.dev/packages/bloc) | 8.1.3 | A predictable state management library | | ||
| [flutter_bloc](https://pub.dev/packages/flutter_bloc) | 8.1.4 | Flutter widgets that require a Bloc to function | | ||
| [equatable](https://pub.dev/packages/equatable) | 2.0.5 | A Dart package that helps to simplify equality comparisons. | | ||
| [dartz](https://pub.dev/packages/dartz) | 0.10.1 | A Dart functional programming library inspired by Haskell. | | ||
| [flutter_widget_from_html](https://pub.dev/packages/flutter_widget_from_html) | 0.14.11 | A Flutter package to render widgets from HTML strings. | | ||
| [cached_network_image](https://pub.dev/packages/cached_network_image) | 3.3.1 | A Flutter library to show images from the internet and keep them in the cache directory. | | ||
| [xml](https://pub.dev/packages/xml) | 6.5.0 | A Dart XML parser and serializer. | | ||
| [url_launcher](https://pub.dev/packages/url_launcher) | 6.2.5 | A Flutter plugin for launching URLs in mobile applications. | | ||
| [shimmer](https://pub.dev/packages/shimmer) | 3.0.0 | A Flutter package that provides an easy way to add shimmer effect to your Flutter app. | | ||
| [just_audio](https://pub.dev/packages/just_audio) | 0.9.36 | A Flutter plugin for playing audio. | | ||
| [just_audio_background](https://pub.dev/packages/just_audio_background) | 0.0.1-beta.11 | A Flutter plugin for playing audio in the background. | | ||
| [path](https://pub.dev/packages/path) | 1.9.0 | A Dart package for manipulating file paths. | | ||
| [path_provider](https://pub.dev/packages/path_provider) | 2.1.2 | A Flutter plugin for finding commonly used locations on the filesystem. | | ||
| [flutter_downloader](https://pub.dev/packages/flutter_downloader) | 1.11.6 | A Flutter plugin for downloading files directly to the device's storage. | | ||
| [sqflite](https://pub.dev/packages/sqflite) | 2.3.2 | A Flutter plugin for SQLite, a self-contained, high-reliability, embedded, SQL database engine. | | ||
| [package_info_plus](https://pub.dev/packages/package_info_plus) | 4.2.0 | A Flutter plugin for querying information about the application package. | | ||
| [permission_handler](https://pub.dev/packages/permission_handler) | 11.3.0 | A Flutter plugin for requesting and checking permissions. | | ||
| [shared_preferences](https://pub.dev/packages/shared_preferences) | 2.2.2 | A Flutter plugin for reading and writing simple key-value pairs. | | ||
|
||
## 📦 Installation | ||
|
||
### Prerequisites | ||
|
||
- Flutter | ||
- Android Studio / Xcode | ||
|
||
### Setup | ||
|
||
1. Clone the repo | ||
|
||
```sh | ||
git clone | ||
``` | ||
|
||
2. Install dependencies | ||
|
||
```sh | ||
dart pub get | ||
``` | ||
|
||
3. Run the app | ||
|
||
```sh | ||
flutter run | ||
``` | ||
|
||
## ❗ Permissions | ||
|
||
### Android | ||
|
||
```xml | ||
<!-- url_launcher --> | ||
<queries> | ||
<intent> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<data android:scheme="https" /> | ||
</intent> | ||
</queries> | ||
<!-- Internet permission --> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<!-- Android 13+ notification --> | ||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | ||
<!-- Audio service --> | ||
<uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | ||
``` | ||
|
||
### iOS | ||
|
||
```xml | ||
<!-- url_launcher --> | ||
<key>LSApplicationQueriesSchemes</key> | ||
<array> | ||
<string>https</string> | ||
</array> | ||
<key>UIBackgroundModes</key> | ||
<array> | ||
<string>audio</string> | ||
</array> | ||
``` | ||
|
||
## 🤝 Contributing | ||
|
||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. | ||
|
||
## 📝 License | ||
|
||
Distributed under the MIT License. See [LICENSE](LICENSE) for more information. | ||
|
||
## 📧 Contact | ||
|
||
- [Email](mailto:shokhrukhbekdev@gmail.com) | ||
- [GitHub](https://github.com/ShokhrukhbekYuldoshev) | ||
|
||
## 🌟 Show your support | ||
|
||
Give a ⭐️ if you like this project! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.