Skip to content

NicosNicolaou16/SampleWearOSWithList

Repository files navigation

Sample Wear OS with List

Linktree Site X LinkedIn Medium Mastodon Bluesky Dev.to blog YouTube Google Developer Profile

This is a sample Flutter project specifically designed for Wear OS. It demonstrates a robust architecture utilizing the BLoC pattern, Dio for network management, and Drift (formerly Moor) for local database persistence and offline support.

Important

NOTE: EXAMPLE FOR ANDROID (WEAR OS) ONLY.

Wear OS List View Wear OS Detail View

🚀 Technologies Used

  • Wear OS Support: Tailored UI for circular and square smartwatch screens, battery optimization, and wearable-specific features.
  • Bloc Pattern: Manages state and separates business logic from the UI using streams.
  • Dio Network Manager: Handles REST API requests to fetch remote data.
  • Drift Database: A reactive persistence library for Flutter and Dart, built on top of SQLite, providing offline functionality.

Important

A detailed setup guide is available on Medium!
👉 Standalone Wear OS Application (Setup for Jetpack Compose and Flutter) 👈

Important

A similar project for pure Native Android (Kotlin/Compose) is also available!
👉 SampleWearOSComposeWithList 👈

🔧 Setup & Configuration

1. Android Manifest

To ensure the app is recognized as a wearable app, add the following to your AndroidManifest.xml:

<manifest>

    <uses-feature android:name="android.hardware.type.watch" />

    <application>
        <!--other code here-->

        <!--Optional - Depend if the Wear OS App need app or note-->
        <meta-data android:name="com.google.android.wearable.standalone" android:value="true" />

        <!--other code here-->
    </application>
</manifest>

🔧 Versioning

  • Flutter SDK: 3.41.6
  • Dart Version: 3.11.4

📡 Data Source (SpaceX API)

This project parses data from the following endpoints:

📚 References & Tutorials

⭐ Stargazers

If you find this project useful, please give it a star!
Check out the stargazers here

🙏 Support & Contributions

Feedback, bug reports, and feature requests are welcome! Feel free to open an issue or submit a pull request.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages