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

Updated segmented control with regards to issue #163 #234

Closed Yash-Khattar closed 1 year ago

Yash-Khattar commented 1 year ago

Description:

In light mode, the color of the text in SegmentedControlWidget should change to white in order to be clearly visible on selection like the RadioChips, so I changed It.

Changes Made:

  1. In file segment_control, I created a new method for buildSegmet so that it can change color of text depending upon the value of the selected element.
  2. In file segment_control_screen and search_page, I made the necessary changes according to the new buildSegment function.

Related Issue:

Solved Issue #163

Screenshots/GIFs:

Before and After images

Screenshot 2023-06-04 023642 Screenshot 2023-06-04 024017

Checklist:

Please review and merge this PR at your earliest convenience.

This PR is in regard to GSSOC'23,

Thank you!

Debajyoti14 commented 1 year ago

@Yash-Khattar Can you solve the conflicts and commit again?