Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v3 #73

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Update to v3 #73

wants to merge 10 commits into from

Conversation

mllrr96
Copy link

@mllrr96 mllrr96 commented Jul 22, 2024

Hi,
I updated the package to change theme mode, and change light and dark theme.
The readme MUST be changed, since I changed it to fit my forked repo.

Breaking changes:

  • initTheme is replaced by themeModel
  • changeTheme is replaced by updateTheme which takes optional lightTheme and darkTheme

What's new

  • Add BuildContext extention to make calling methods easier e.g.
    ThemeSwitcher.of(context).updateTheme ----> context.updateTheme

  • Add ability to change theme mode (light, dark, system) by calling context.updateThemeMode, or if you want to switch from current mode to the opposite just call context.toggleThemeMode()

Feel free to reformat, rewrite anything in readme

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant