wear_os_plugin 0.3.0 copy "wear_os_plugin: ^0.3.0" to clipboard
wear_os_plugin: ^0.3.0 copied to clipboard

PlatformAndroid

A Flutter plugin with basic Wear OS functionality, like scrollable view with rotary input or circular screen support

wear_os_plugin #

A Flutter plugin with basic Wear OS functionality, like scrollable view with rotary input or circular screen support

Round Screen By default all apps are Fullscreen and this means rectangular. To have round shaped apps, the app needs to have transparent backgrounds. Round screens will be visible, when you swipe away an app like this:

Round Screen

Beside the general transparent behavior of the app, all widgets must be clipped which is handled automatically by the the WearOsClipper class.

The general information about the screen shape is handled by the WearOsApp class. It has static and listenable member value to hold the information about round shape etc.

These values will be initialized by using the WearOsApp or by calling the static init method.

Round Scrollbar The default scrollbars are rectangular, like the basic screen layout.

The class WearOsScrollView takes care of scrollbars:

rectangular watch round watch
Rectangular Round

Getting Started #

Wear OS #

Change the following in your Wear OS (Android) Project:

android/app/build.gradle:

minSdkVersion 30

android/app/src/main/AndroidManifest.xml:

	<application
	...>
        <meta-data
            android:name="com.google.android.wearable.standalone"
            android:value="true" />
	...            

Maybe change the launch theme directly to the normal theme, to avoid the system splash screen:

	<application
		...
		android:theme="@style/LaunchTheme"
		->
		android:theme="@style/NormalTheme"
	...

Permission for Vibration and Watch Feature is already set.

11
likes
150
pub points
54%
popularity

Publisher

verified publisherqooapps.com

A Flutter plugin with basic Wear OS functionality, like scrollable view with rotary input or circular screen support

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on wear_os_plugin