Giter Club home page Giter Club logo

Comments (6)

jeroen1602 avatar jeroen1602 commented on August 20, 2024

Flutter creates a new profile for chrome when you use flutter run.

I've created documentation on how to get enable the feature flag anyway see https://github.com/jeroen1602/flutter_web_bluetooth/blob/master/chrome-experimental-launch/README.md

from flutter_web_bluetooth.

Abhishekvlog avatar Abhishekvlog commented on August 20, 2024

Thank you for the help,
I have created a patch file but I can't enable the experimental flag in browser.

Screenshots/ GIF

Screencast.from.18-08-23.12.32.04.PM.IST.webm

could you please help me out

from flutter_web_bluetooth.

jeroen1602 avatar jeroen1602 commented on August 20, 2024

It looks like you ran the patch in your own project. But you need to patch your flutter installation.

If you run

where flutter

Then you will get the path where flutter is installed for you. For me it is /home/jeroen/bin/flutter/bin/flutter.
In my case I would need to run the patch from /home/jeroen/bin/flutter, the root directory of the flutter installation.

After that don't forget to remove bin/cache/flutter_tools.snapshot so that flutter needs to rebuild in order to work.

I hope this helps. You will need to run this patch again after each flutter update. (And update using flutter upgrade --force because it will detect changes in your installation)

from flutter_web_bluetooth.

Abhishekvlog avatar Abhishekvlog commented on August 20, 2024

As you mentioned, I've moved the patch file to the root directory where flutter is installed. Now how do I run this patch file in this directory.

image

from flutter_web_bluetooth.

jeroen1602 avatar jeroen1602 commented on August 20, 2024

You need to move the patch one folder up, it's currently in the bin folder of flutter and not in the flutter root folder.

Once you have done that open the terminal (right click Open in terminal). You can check if the terminal opened in the correct folder by running ls and you'd see the same file list as in the file manager.

Now run (you can use tab completion for the file name)

patch -p1 < Add-experimental-launch-flag.patch

Now if everything went correctly your flutter should be patched. However the flutter build is still cached, so go into the bin/cache folder and delete flutter_tools.snapshot.

If you run flutter it should recreate this snapshot and should be patched to open chrome with the correct flag on

from flutter_web_bluetooth.

Abhishekvlog avatar Abhishekvlog commented on August 20, 2024

@jeroen1602 Thanks for your support.

from flutter_web_bluetooth.

Related Issues (20)

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.