0 purchases
wear os plugin
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:
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
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" />
...
copied to clipboard
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"
...
copied to clipboard
Permission for Vibration and Watch Feature is already set.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.