GithubHelp home page GithubHelp logo

Comments (9)

BC-clegras avatar BC-clegras commented on August 22, 2024 1

Here is a link to the slightly modified code to use your browser as a color picker, lmk if you have any questions!

from flet-color-browser.

ndonkoHenri avatar ndonkoHenri commented on August 22, 2024

Thanks.
I will refactor the code to reflect the latest version.
And instead of a button to switch versions I will introduce the NavigationBar.

from flet-color-browser.

BC-clegras avatar BC-clegras commented on August 22, 2024

Awesome, thanks!

from flet-color-browser.

ndonkoHenri avatar ndonkoHenri commented on August 22, 2024

I made updates. You can have a look at the code or try the latest released versions from here: https://github.com/ndonkoHenri/Flet-Color-Browser/releases/tag/v1.3. Let me know what you think of it please.
I will update the website later on and let you know.

from flet-color-browser.

BC-clegras avatar BC-clegras commented on August 22, 2024

It works great now, thanks. I do also like how it's faster than the previous ones, I see you removed the progress bar.

Also, I made some modifications to your code locally to allow it to be used as a color picker in an application, if you would like I can share that code through a pull request or something. They are very minor modifications, the base code was very good.

from flet-color-browser.

ndonkoHenri avatar ndonkoHenri commented on August 22, 2024

Thanks.
Yes I removed the progress bar. Introducing the NavBar made me feel it doesn't have its place there (Didn't look that pretty to me).

As a color picker? Wow, I am pretty amazed and willing to see that. You could simply share the link to your repo. Making a PR to this repo is not ideal, I think.

from flet-color-browser.

ndonkoHenri avatar ndonkoHenri commented on August 22, 2024

Here is the deployed web version: https://flet-color-browser.pages.dev/
I noticed some lag when switching from version 1 to v2 :(

from flet-color-browser.

BC-clegras avatar BC-clegras commented on August 22, 2024

Unfortunately, I can't share the link to the repo, it's private, but after work I'll make a quick example of how it works and put it on a public repo to share with you.

Basically, I imported the ColorBrowser class and put it in a Container. That let me display it on my main stack, and I can use the visible property to show/hide it at will. in the click_event function of the Tile class, I added a line to append eval(self.color_val) to a list that is accessed through the page that was passed when calling the class, and then I'm using that list of colors to make a gradient.

I also did notice a bit of lag on the web version when switching from V1 to V2, not sure how that could be fixed unfortunately...

from flet-color-browser.

ndonkoHenri avatar ndonkoHenri commented on August 22, 2024

Thanks! Will give it a check.

from flet-color-browser.

Related Issues (2)

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.