Clueless-Community / Spectrum-UI

Spectrum UI is a user-friendly Flutter UI library that offers a variety of beautifully designed widgets and components that are easy to use and can be integrated into your Flutter projects seamlessly.
MIT License
70 stars 99 forks source link

[New Feature] Adding Toggle Buttons or Switches #229

Open Rhishikesh12 opened 1 year ago

Rhishikesh12 commented 1 year ago

Is your feature request related to a problem? Please describe. I often encounter situations where I need to implement toggle buttons in user interfaces. These toggle buttons allow users to switch between two states or options, and they are commonly used in various applications and websites. Currently, the UI library I'm using does not provide built-in toggle buttons, which makes it more time-consuming and complex to implement them manually.

Describe the solution you'd like I would like the UI library to include a set of toggle buttons as a built-in component. These toggle buttons should be customizable and easy to use, allowing developers to quickly add toggle functionality to their interfaces. Ideally, the toggle buttons should have options for different styles, sizes, and colors, so they can be easily adapted to match the overall design of the application.

Describe alternatives you've considered As an alternative, I could create custom toggle buttons from scratch, this would require additional development time and effort.

image

ashdude1401 commented 1 year ago

@Rhishikesh12 Will you be able to implement this without using any external packages?

Rhishikesh12 commented 1 year ago

@Rhishikesh12 Will you be able to implement this without using any external packages?

Yes I will try to make as many buttons as possible

And can you please review my PRs.

ashdude1401 commented 1 year ago

Because we are not allowing any use of 3-rd party packages .So, make changes to your code accordingly .

RunTerror commented 1 year ago

please assign me this issue

Rhishikesh12 commented 1 year ago

please assign me this issue

It is already done. Check the PR.