Comments (12)
I've been unofficially maintaining this plugin for myself and partners for the past 2 years. Since no one is responding to issues in this repository, I have released wear_plus with the necessary changes to be compatible with a modern Flutter application.
@Rexios80
Hi,
I am developing a launcher for a smart watch that OS is android 8.1.0.
in both plugin (wear:1.1.0
and wear_plus:1.2.0
), I got those exceptions, so I think the usage of methodChannel in native implementation is incorrect, if not? tell me how fix that.
and I have one question about ambient Mode in watch.
What is the ambient mode in the watch and when does it occur?
E/flutter ( 6715): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getShape on channel wear)
E/flutter ( 6715): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter ( 6715): <asynchronous suspension>
E/flutter ( 6715): #1 Wear.getShape (package:wear_plus/src/wear.dart:63:15)
E/flutter ( 6715): <asynchronous suspension>
E/flutter ( 6715): #2 _WatchShapeState.initState.<anonymous closure> (package:wear_plus/src/shape_widget.dart:55:35)
E/flutter ( 6715): <asynchronous suspension>
E/flutter ( 6715):
E/flutter ( 6715): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method isAmbient on channel wear)
E/flutter ( 6715): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter ( 6715): <asynchronous suspension>
E/flutter ( 6715): #1 Wear.isAmbient (package:wear_plus/src/wear.dart:74:15)
E/flutter ( 6715): <asynchronous suspension>
E/flutter ( 6715): #2 _AmbientModeState._updateMode (package:wear_plus/src/ambient_widget.dart:90:3)
E/flutter ( 6715): <asynchronous suspension>
from flutter_wear_plugin.
Do not depend on both plugins.
wear_plus is a drop in replacement for the wear plugin
from flutter_wear_plugin.
If you aren't depending on both, the issue is probably that you need to call WidgetsFlutterBinding.ensureInitialized() first
from flutter_wear_plugin.
Ambient mode is when the screen is "inactive" but still on. If you play with the example app and the hand cover gesture this should become obvious.
from flutter_wear_plugin.
Do not depend on both plugins.
wear_plus is a drop in replacement for the wear plugin
I know. I only use one of them at a time. not both
from flutter_wear_plugin.
If you aren't depending on both, the issue is probably that you need to call WidgetsFlutterBinding.ensureInitialized() first
I added this before. but still not working.
from flutter_wear_plugin.
Ambient mode is when the screen is "inactive" but still on. If you play with the example app and the hand cover gesture this should become obvious.
thanks
from flutter_wear_plugin.
Does the example app work?
from flutter_wear_plugin.
Does the example app work?
Unfortunately not.
from flutter_wear_plugin.
The wear_plus example app works as expected for me. Please create an issue in the wear_plus repo with more information. https://github.com/Rexios80/wear_plus
from flutter_wear_plugin.
The wear_plus example app works as expected for me. Please create an issue in the wear_plus repo with more information. https://github.com/Rexios80/wear_plus
I tried to create issue in your repo. but I cant find any way to do that(there is not issue tab in repo).
from flutter_wear_plugin.
Issues are disabled by default in forked repos, my bad. Please try now.
from flutter_wear_plugin.
Related Issues (15)
- Does not work at the latest SDK. HOT 1
- MainActivity has leaked ServiceConnection when press Back exit Wear app HOT 3
- compileOnly files('C:\\Android\\flutter\\bin\\cache\\artifacts\\engine\\android-x64\\flutter.jar') breaks build on non-windows environments HOT 5
- Ambient Mode not working in release mode HOT 4
- Support for WearOS tiles
- Unable to release the app APK on Google Play HOT 2
- APP ANR when click button on the side of watch HOT 1
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. HOT 4
- Sync between phone and wear HOT 13
- Project abandoned? HOT 1
- Reply already submitted - Fatal exception HOT 1
- MissingPluginException HOT 3
- add null safety support HOT 3
- Exit full-screen HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_wear_plugin.