1

I use stripe and google analytics in my flutter web app. I want to add a cookie consent banner according to GDPR regulations. I tried to use the library Yett as described in this stackoverflow post. But for this library to work I need to put it on top of all other third party libraries in my index.html file. But when I run my project, flutter puts all its dependencies at the top of index.html, before any libraries I had put in the file.

This way, the libraries load before the yett library. Is there a way to enforce yett library to be put before the rest of the dependencies injected my flutter or another way altogether to have cookies consent in flutter?

rya
  • 1,417
  • 1
  • 16
  • 29

0 Answers0