https://github.com/nicosnicolaou16/samplewearoswithlist
This is a sample project that supports a Wear OS app and utilizes the BLoC architecture pattern, Dio for network management, and Drift for database handling.
https://github.com/nicosnicolaou16/samplewearoswithlist
dart dio drift-database flutter list wear-os wearable wearos wearoscompose
Last synced: 16 days ago
JSON representation
This is a sample project that supports a Wear OS app and utilizes the BLoC architecture pattern, Dio for network management, and Drift for database handling.
- Host: GitHub
- URL: https://github.com/nicosnicolaou16/samplewearoswithlist
- Owner: NicosNicolaou16
- Created: 2023-10-28T20:22:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-10T23:34:26.000Z (3 months ago)
- Last Synced: 2025-03-23T06:41:23.570Z (about 1 month ago)
- Topics: dart, dio, drift-database, flutter, list, wear-os, wearable, wearos, wearoscompose
- Language: Dart
- Homepage: https://medium.com/@nicosnicolaou/standalone-wear-os-application-jetpack-compose-and-flutter-5a37f4775ed8
- Size: 490 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Wear OS with List
This is a sample project that supports a Wear OS app and utilizes the BLoC architecture pattern, Dio
for network management, and Drift for database handling.> [!IMPORTANT]
> NOTE: EXAMPLE FOR ANDROID ONLY.# The Project Contain the following technologies
[Wear OS](https://developer.android.com/training/wearables) support refers to adapting an app for
use on smartwatches, ensuring it works well with small
screens, conserves battery life, and utilizes features such as notifications and fitness tracking
specific to wearable devices.
[Bloc Patterns](https://pub.dev/packages/flutter_bloc) along with repositories
and services, separates business logic, data access, and UI by using streams to handle state and
manage data flow. ([Bloc Pattern Documentation](https://bloclibrary.dev/getting-started/))
[Dio Network Manager](https://pub.dev/packages/dio) is responsible for making requests and
retrieving data from the remote server.
[Drift Database](https://drift.simonbinder.eu/docs/getting-started/) is responsible for saving the
retrieved data from the remote server, querying data from the local database, and supporting offline
functionality. ([Drift Database Documentation](https://pub.dev/packages/drift))# Setup
## Setup in Manifest
```xml
```
> [!IMPORTANT]
> Check my article for the setup :point_right: [Standalone Wear OS Application (Setup for Jetpack Compose and Flutter) - Medium](https://medium.com/@nicosnicolaou/standalone-wear-os-application-jetpack-compose-and-flutter-5a37f4775ed8) :point_left:> [!IMPORTANT]
> Similar project with (Kotlin Language) :point_right: [SampleWearOSComposeWithList](https://github.com/NicosNicolaou16/SampleWearOSComposeWithList) :point_left:## Versioning
Flutter SDK version: 3.27.1
Dart Version: 3.6.0# Feeds/Urls/End Point (parsing some data from response)
## (Links References for Ends Points)
https://github.com/r-spacex/SpaceX-API (GitHub)
https://docs.spacexdata.com/?version=latest (Postman)# References/Tutorials Follow
https://medium.com/flutter-community/flutter-building-wearos-app-fedf0f06d1b4
https://pub.dev/packages/wear
https://github.com/fluttercommunity/flutter_wear_plugin
https://developer.android.com/training/wearables/compose