Coder Social home page Coder Social logo

flutter's People

Contributors

felipe-saez avatar nicolas-chaix-didomi avatar pmerlet-at-didomi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

glettl

flutter's Issues

Error : channel sent a message from native to Flutter on a non-platform thread

Hello,

Here an issue found wich seems to occur on the first run once you click on accept && close .

[VERBOSE-2:shell.cc(1004)] The 'didomi_sdk/events' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.

Flutter doctor :

[✓] Flutter (Channel stable, 3.13.8, on macOS 13.1 22C65 darwin-x64, locale fr-FR)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] Connected device (3 available)
[✓] Network resources

Bug in onPreferencesClickDisagreeToAll Event Handling

There is an issue related to the event handling in part of the code where onPreferencesClickDisagreeToAll incorrectly triggers onPreferencesClickAgreeToAll instead of its own handler. This bug makes it impossible to accurately detect when a user has selected the DisagreeToAll option.

The issue seems to stem from a typo in the switch-case statement handling the event triggers. Here is the problematic part of the code:

listener.onPreferencesClickAgreeToAll();

case "onPreferencesClickAgreeToAll":
    for (var listener in listeners) {
      listener.onPreferencesClickAgreeToAll();
    }
    break;

case "onPreferencesClickDisagreeToAll":
    for (var listener in listeners) {
      listener.onPreferencesClickAgreeToAll(); // This should call to disagree to all
    }
    break;

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.