• Stars
    star
    110
  • Rank 310,089 (Top 7 %)
  • Language
    Dart
  • Created about 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is a Flutter app for WearOS.

Flutter OS (Android Wear OS app)

Checkout my Medium article "Flutter: Building Wear OS app".

First of all I want to state that it is not an OS, it is just an app.

This is an app for Wear OS devices which is inspired from the Medium article written by Matt Sullivan, "Experimenting with Flutter on Wear OS". This article really helped me to understand, how to manage the screen size of the app properly and inheriting it to different classes.

In this app, I tried to optimize the relax app created by Erin Morrissey (made as a Flutter Create Submission 2019, which got nominated for Visual Beauty), to run on Wear OS devices.

The wear app has two modes:

  1. Normal Mode
  2. Ambient Mode (which is the battery saving mode)

You can checkout some snaps of the app below.

Screenshots

App in Action

Plugin

The plugin used in this project is "wear".

Add this to your package's pubspec.yaml file to use wear:

dependencies:
  wear: ^0.0.3

Import using:

import 'package:wear/wear.dart';

Set Up (Important)

Matt has already discussed, in his GitHub project of flutter_wear_plugin, how to set up the project for Flutter Wear OS apps. But, I faced a lot of difficulty while following the steps. So, I recommend that you clone my project or Matt's example project and then work on it, after deleting the UI files which you don't require, because in this way you do not need to set up the whole project which consumes a huge amount of time and you will face a lot of challenges.

I am again stating the set up process below (not recommended):

App Gradle File

Change the min SDK version to API 23:

minSdkVersion 23

Then, add the following dependencies to the Android Gradle file for the app:

dependencies {
    // Wear libraries
    implementation 'com.android.support:wear:27.1.1'
    implementation 'com.google.android.support:wearable:2.3.0'
    compileOnly 'com.google.android.wearable:wearable:2.3.0'
}

Manifest File

Add the following to your AndroidManifest.xml file:

<!-- Required for ambient mode support -->
<uses-permission android:name="android.permission.WAKE_LOCK" />

<!-- Flags the app as a Wear app -->
<uses-feature android:name="android.hardware.type.watch" />

<!-- Flags that the app doesn't require a companion phone app -->
<application>
<meta-data
    android:name="com.google.android.wearable.standalone"
    android:value="true" />
</application>

Update Android's MainActivity

The ambient mode widget needs some initialization in Android's MainActivity code. Update your code as follows:

class MainActivity: FlutterActivity(), AmbientMode.AmbientCallbackProvider {
  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    GeneratedPluginRegistrant.registerWith(this)

    // Wire up the activity for ambient callbacks
    AmbientMode.attachAmbientSupport(this)
  }

  override fun getAmbientCallback(): AmbientMode.AmbientCallback {
    return FlutterAmbientCallback(getChannel(flutterView))
  }
}

Conclusion

After creating this project, I admit that Flutter is not optimized for Wear OS devices till now as many of the simple things are not working on Wear OS like all material Icons which are included in Flutter are not displaying on Wear OS devices, instead a Placeholder image is getting displayed. For this reason, I had to download the material Icons for the Material Design website and add it to assets.

Though after facing a lot of difficulties I have finally done this project.

If you like the project please give star ⭐️.

License

Copyright (c) 2019 Souvik Biswas

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.

More Repositories

1

video_trimmer

Flutter video trimmer package
Dart
400
star
2

explore

A Flutter Web responsive website sample.
Dart
325
star
3

flutter_maps

A Flutter app using Google Maps SDK, Directions API
Dart
321
star
4

flutterfire-samples

Firebase + Flutter sample apps with code snippets, supported by comprehensive articles for each implementation.
Dart
218
star
5

sign_in_flutter

"Login Demo" app which shows how to use google sign in Android and iOS using Flutter.
Dart
199
star
6

flutter_bluetooth

Using Bluetooth plugin in Flutter (flutter_bluetooth_serial)
Dart
187
star
7

reflective_ui_flutter

Reflective UI implementation using Flutter
C++
168
star
8

flutter-parallax-cards

Flutter app showcasing a parallax effect using the device accelerometers
C++
109
star
9

flutter_camera_demo

Flutter camera demo
Dart
90
star
10

responsive_design

A Flutter sample app showing responsive layout design
Dart
63
star
11

flutter_docker

Flutter Docker Container Workspace Setup
Dart
56
star
12

notify

Flutter sample app having push notification integration
Dart
54
star
13

flutter-authentication

Dart
46
star
14

events_demo

Scheduling and managing Google Meet events using Calendar API in Flutter
Dart
43
star
15

top_flutter_libraries

Collection of Top Flutter Library example apps that you will love
Dart
43
star
16

puzzle_hack

Flutter slide puzzle
Dart
41
star
17

file_encryption_animation

Animation for converting sensitive documents to encrypted format
Dart
41
star
18

flutter_qr_extension

Chrome extension created using Flutter for generating QR code from either a text or URL
C++
40
star
19

decifer

Generate your audio transcripts with ease.
Dart
40
star
20

dio_networking

Flutter Dio networking
Dart
34
star
21

particle_canvas

Particle Canvas using Flutter, FlutterFlow, and some math!
Dart
32
star
22

custom_painter

Flutter Custom Painter Examples
Dart
31
star
23

slibro

Platform for story writers and publishing houses
Dart
31
star
24

flutter_vision

Using Firebase ML Kit in Flutter
Dart
30
star
25

ticket_booking

Android (Kotlin) app design using ConstraintLayout
Kotlin
29
star
26

flutter_stream

A sample Flutter project for demonstrating how to integrate video streaming service with the help of MUX.
Dart
28
star
27

mediblock

App for sharing medical records securely (using custom encryption scheme and blockchain)
Dart
28
star
28

codewords_FF

Codewords game made using FlutterFlow
Dart
28
star
29

data-structures

All types of C++ Data Structures and Algorithms
C++
24
star
30

flutter_mlkit_vision

Flutter sample app using MLKit Vision API for text recognition
Dart
23
star
31

plant_tinker

Plant monitoring using Node MCU (with various sensors), Flutter & Firebase
Dart
20
star
32

plant-monitor

Plant monitoring system using IoT, MongoDB, and Flutter
Dart
20
star
33

stream_payment

P2P payment solution using Stream's Flutter SDK and Rapyd's Wallet API
Dart
19
star
34

hive_demo

Flutter app using Hive for local data persistance
Dart
19
star
35

haptic_type_transition

Flutter Haptic Type Transition demo app
Dart
19
star
36

pri_at_morse

A P2P Flutter chatting app using @ protocol
Dart
16
star
37

fire_presence

Flutter app for tracking user presence on Firestore (using Realtime Database & Cloud Functions)
Dart
15
star
38

mix-recipe-app

A recipe app UI created using MIX
Dart
15
star
39

dynamic_island_experiments

C++
15
star
40

flutter_vr

Flutter VR app using React 360 and GitHub Pages.
Dart
15
star
41

flutter_generative_art

Simple generative arts created using Flutter
Dart
14
star
42

cyber_flutter

Introducing a new set of Flutter widgets called "Cyber Widget"
Dart
12
star
43

rapyd_checkout

A minimalistic story writing and publishing platform.
Dart
11
star
44

flutter_textured_glass

Flutter project showcasing textured glass nav bar.
C++
11
star
45

court_counter_flutter

Court Counter using Flutter module
Java
10
star
46

flutter-ml-kit-pose-plugin

Realtime yoga pose detection and classification plugin for Flutter using MLKit
Java
10
star
47

agora_demo

Flutter Agora Demo app (uses Firebase Cloud Functions for token generation)
Dart
10
star
48

flutter_riverpod_sample

Flutter sample app using Riverpod
Dart
9
star
49

quotes_trivia

Android sample app to get familiarized with Navigation Component
Kotlin
8
star
50

flutter_wear

Flutter WearOS plugin
Dart
8
star
51

day_to_day

My Flutter Create Submission
Dart
8
star
52

sbis04

My portfolio
7
star
53

flutter_screenshot_integration_test

Flutter screenshot integration testing (supported on Android & Web)
Dart
6
star
54

morse_translator

A dart library for morse encryption and decryption
Dart
6
star
55

flutter_http_networking

Flutter networking using http package
Dart
6
star
56

wander_xp

Organise your travel with ease
6
star
57

demo360

Hosted in gh-pages
JavaScript
6
star
58

line_coding

Flutter Custom Painter Line Coding
Dart
6
star
59

razorpay_demo

A Flutter app for demonstrating Razorpay integration that works on Android, iOS, and Web
Dart
6
star
60

codemagic_api

Flutter app for using Codemagic API
Dart
5
star
61

rapyd_sdk_flutter

Rapyd Flutter SDK for accessing the Payments API
Dart
5
star
62

blazepose-oak

OAK Blazepose
Python
4
star
63

fire_test

A Flutter sample app with Firebase integration
Dart
4
star
64

stream_sticker_animation

Stream Sticker Animation using Rive
Dart
4
star
65

ndorfins

VR Environment curing mental depression and anxiety
4
star
66

bmi_calculator

BMI Calculator iOS app using Flutter modules
Swift
4
star
67

crypto_flutter

This is a cryptocurrency app, where you can check the prices of most popular 50 currencies.
Dart
4
star
68

quake_report_flutter

Using USGS Earthquake API for this flutter app.
Dart
4
star
69

yoga-instructor-oak-server

Sofia OAK-D + Raspi connection server
Shell
4
star
70

flutter_firebase_auth

Simple implementation of Firebase Authentication using Flutter
Dart
4
star
71

flutterflow_trivia

Trivia Quiz App built with FlutterFlow
Dart
4
star
72

indian_flag_flutter

Indian Flag created using Custom Clipper & Animation in Flutter.
Dart
3
star
73

algo_canvas

Flutter Canvas for visualizing algo
Dart
3
star
74

panda-docs-confluence-app

Panda Docs Confluence App
JavaScript
3
star
75

wander_xp_app

An app for managing your travel necessities
Dart
3
star
76

flutter_realtime_pose

Flutter realtime pose recognition using MLKit's Blazepose
Java
3
star
77

stream_auth_firebase

Stream serverless authentication using Firebase Authentication and Cloud Functions.
Dart
3
star
78

virtual_lab_qpsk

A Virtual Lab for performing QPSK Wave Modulation
Kotlin
3
star
79

flutter_projects

Various types of Flutter Projects
Dart
3
star
80

sbis04.github.io

JavaScript
3
star
81

space_invaders_remastered

Space Invaders Remastered Game
Python
3
star
82

hello_detox

React Native App Detox Tests
Java
2
star
83

flutter_cloud_functions

C++
2
star
84

mix-design-samples

Design samples created using MIX
Dart
2
star
85

hello_espresso

Android Espresso testing sample app
Kotlin
2
star
86

bmi_ios

BMI Calculator sample app for iOS
Swift
2
star
87

web_performance_testing

Flutter Web Performance testing on Codemagic CI/CD
Dart
2
star
88

binary_clock

Flutter binary clock with Dark mode support
Dart
2
star
89

flutter_desktop_sample

Build Flutter desktop app for macOS, Linux, and Windows using Codemagic
C++
2
star
90

tasks_demo

Android Tasks Demo app
Kotlin
2
star
91

android_basics_networking

Followed Udacity Android Basics Networking course
Java
2
star
92

synd_innovate_prototype

This contains two repos: 1. Agents/Users, 2. Admin
1
star
93

android_basics_user_input

These are the completed projects based on Udacity Android Basics Nanodegree
Java
1
star
94

flutter_multiplatform_demo

Demo for triggering Flutter app build on multiplatform using Codemagic Webhooks
C++
1
star
95

india

GitHub resources and information for the developer community in India
Ruby
1
star
96

tipsy_modules

Sample Android & iOS app with Flutter modules
Kotlin
1
star
97

destini_flutter

App built as a part of AppBrewery Flutter course
Dart
1
star
98

android_basics_multiscreen_apps

Java
1
star
99

bmi_calculator_flutter

BMI calculator inspired by Dribble design made by Ruben Vaalt.
Dart
1
star
100

wechaty-ctrl-c-bot

Created with CodeSandbox
TypeScript
1
star