Today, I Tried Adding Both The Big As Well As Small DarkLightButtonSmall From Components. Well. I Was Able To Add The Action To It To Turn To Dark Mode When The User Clicks On It.
Here Is What I Did:
1. Add The Switch Component In My Canvas.
2. Select The DarkLightButtonSmall From The Canvas - Go To Properties - Action.
3. In The Action - Select On Tap - (Action 1) Set Dark Mode Setting - (Setting Source) Select Setting - (Dark Mode Setting) Dark Mode.
This Way, I Was Able To Make The Button Responsive To Switch To Dark Mode. But I Couldn't Reverse To Light Mode Using It As I Was Unable To Figure Out What To Do, So That The Same DarkLightButtonSmall Can Be Used For Selecting Between Both Dark And Light Theme.
Can Anyone Please Help Me With A Detailed Steps Along With The Actions And Conditions That I Should Use To Make My DarkLightButtonSmall Responsive.