didomi / flutter Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin for the Didomi CMP
License: Other
Flutter plugin for the Didomi CMP
License: Other
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
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:
flutter/lib/events/events_handler.dart
Line 138 in 9e8b824
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;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.