BirjuVachhani / adaptive_theme

Easiest way to add support for light and dark theme in your flutter app.
https://pub.dev/packages/adaptive_theme
Apache License 2.0
464 stars 37 forks source link

Add custom mode #21

Closed kephren226 closed 3 years ago

kephren226 commented 3 years ago

hello Is there a way to add a third mode ?

For instance i want a dark blue background as a third option I can i do that if possible

If not it will be very cool to have such an option

BirjuVachhani commented 3 years ago

Flutter only has 3 modes for theming so does this package. Which means you need to utilize existing mode for any customization you want.

Checkout Changing Themes section. You can set your blue background theme by replacing dark theme. (even if I give you option to provide custom themes. This is what I have to do internally!)

kephren226 commented 3 years ago

I saw that in the doc What time I'm really asking is apart from the the 2 themes dark and light can I add on other one I don't want to replace the black background with a blue one I want a black one and a blue one like in the twitter app

BirjuVachhani commented 3 years ago

Yes, it can be done as I said. Only a single theme is active at a time right? Twitter replaces the dark theme based on what mode is selected. and only 1 mode is active at a time. so replacing existing dark won't affect anything. I think you can manage that.

kephren226 commented 3 years ago

Ok Think we still don't understand each other Thanks for taking time to reply 👍🏿