Skip to content

Update to v3#73

Open
mllrr96 wants to merge 10 commits intokherel:masterfrom
mllrr96:master
Open

Update to v3#73
mllrr96 wants to merge 10 commits intokherel:masterfrom
mllrr96:master

Conversation

@mllrr96
Copy link
Copy Markdown

@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