Code Monkey home page Code Monkey logo

Comments (12)

ImanGhasemiArani avatar ImanGhasemiArani commented on July 17, 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>

from flutter_wear_plugin.

Rexios80 avatar Rexios80 commented on July 17, 2024

Do not depend on both plugins.

wear_plus is a drop in replacement for the wear plugin

from flutter_wear_plugin.

Rexios80 avatar Rexios80 commented on July 17, 2024

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

from flutter_wear_plugin.

Rexios80 avatar Rexios80 commented on July 17, 2024

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.

ImanGhasemiArani avatar ImanGhasemiArani commented on July 17, 2024

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.

ImanGhasemiArani avatar ImanGhasemiArani commented on July 17, 2024

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.

ImanGhasemiArani avatar ImanGhasemiArani commented on July 17, 2024

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.

Rexios80 avatar Rexios80 commented on July 17, 2024

Does the example app work?

from flutter_wear_plugin.

ImanGhasemiArani avatar ImanGhasemiArani commented on July 17, 2024

Does the example app work?

Unfortunately not.

from flutter_wear_plugin.

Rexios80 avatar Rexios80 commented on July 17, 2024

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.

ImanGhasemiArani avatar ImanGhasemiArani commented on July 17, 2024

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.

Rexios80 avatar Rexios80 commented on July 17, 2024

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

from flutter_wear_plugin.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.