Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the wear_plus plugin instead #33

Open
Rexios80 opened this issue Mar 20, 2024 · 13 comments
Open

Use the wear_plus plugin instead #33

Rexios80 opened this issue Mar 20, 2024 · 13 comments

Comments

@Rexios80
Copy link

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.

@ImanGhasemiArani
Copy link

ImanGhasemiArani commented Mar 24, 2024

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>

@Rexios80
Copy link
Author

Do not depend on both plugins.

wear_plus is a drop in replacement for the wear plugin

@Rexios80
Copy link
Author

Rexios80 commented Mar 24, 2024

If you aren't depending on both, the issue is probably that you need to call WidgetsFlutterBinding.ensureInitialized() first

@Rexios80
Copy link
Author

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.

@ImanGhasemiArani
Copy link

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

@ImanGhasemiArani
Copy link

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.

@ImanGhasemiArani
Copy link

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

@Rexios80
Copy link
Author

Does the example app work?

@ImanGhasemiArani
Copy link

Does the example app work?

Unfortunately not.

@Rexios80
Copy link
Author

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

@ImanGhasemiArani
Copy link

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).

@Rexios80
Copy link
Author

Issues are disabled by default in forked repos, my bad. Please try now.

@GeekJosh
Copy link

@Rexios80 thank you so much for doing this! I've just got started with Flutter and was battling with getting this repo to work, yours worked perfectly without needing to modify the project beyond adding the plugin 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants