codifyiq_brightness_button 2.0.0
codifyiq_brightness_button: ^2.0.0 copied to clipboard
A Light, Dark, and System theme toggle button for Flutter, built on the AdaptiveTheme package.
2.0.0 #
- Breaking: now built on
material_ui, Flutter's standalone Material library, instead of the copy bundled in the Flutter SDK. Your app must usematerial_uitoo, otherwise the widgets won't pick up your theme. To migrate your app, rundart fix --apply --code=migrate_design_widgets. - Breaking: requires Flutter 3.44 / Dart 3.12 or later.
- Breaking: requires
adaptive_theme3.8.0 or later, the first release built onmaterial_ui. BrightnessSubmenu— a "Theme" submenu you can drop into your ownMenuAnchor(e.g. an account or overflow menu) instead of adding a separate button. Its icon reflects the current mode, and all labels can be overridden.brightnessMenuItems(context)— the Light / Dark / System menu items on their own, to spread inline into any menu.BrightnessButtongainstooltip,lightLabel,darkLabel, andsystemLabel, so its text can be localized like the submenu's.
1.0.0 #
- Initial release as a standalone package, extracted from
codifyiq_core_components. BrightnessButton— a Light / Dark / System theme toggle built on AdaptiveTheme.