mega_ui_kit 0.0.5
mega_ui_kit: ^0.0.5 copied to clipboard
Flutter UI kit with themeable semantic colors (MegaColorScheme), design tokens, and Mega-aligned widgets. Brand colors are provided by your app — see example.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.5 - 2026-05-20 #
Added #
- Package logo —
assets/megauikit_logo.svgandassets/megauikit_logo.png(wordmark for pub.dev and README).
0.0.4 - 2026-05-20 #
Fixed #
- README preview images: markdown + GitLab raw URLs (pub.dev/GitLab display).
0.0.3 - 2026-05-20 #
Added #
MegaColorScheme— semantic color tokens as aThemeExtension(primary, secondary, surface, success, error, disabled, system accents, component-specific fills).BuildContext.megaColors— resolved colors for the active light or dark theme.- Documented pub.dev example —
example/lib/main.dart: theme setup, color previews,MegaButton,MegaSnackBar,MegaSwitch,MegaCheckbox. - Kitchen sink entry —
example/lib/kitchen_sink_main.dartfor the full component gallery. - Example brand reference —
example/lib/theme/mega_palette.dart(raw hex) andexample/lib/theme/mega_brand_colors.dart(MegaBrandColors.light/.dark). - README screenshots —
assets/screenshots/(buttons, list tiles, dropdown, dividers & progress). - Example README — run instructions and integration checklist.
Changed #
- Breaking:
MegaTheme.light()andMegaTheme.dark()now requirecolors: MegaColorScheme. - Breaking: Removed
MegaColorsandMegaPalettefrom the package API. Brand colors live in the example only. - Breaking: Widgets use
context.megaColorsinstead of staticMegaColors.*/*Light/*Darkbranches. - Unified semantic names per theme variant (
secondary,onSecondary, …) — nosecondaryLight/secondaryDarkin widget code. - Expanded root README (theming model, migration, widget list, example commands).
- Updated pub.dev example from a one-line kitchen-sink re-export to a self-contained demo in
main.dart.
Migration #
// 0.0.x
MaterialApp(theme: MegaTheme.light());
color: MegaColors.primary;
// 0.0.3
MaterialApp(theme: MegaTheme.light(colors: MegaBrandColors.light));
color: context.megaColors.primary;
Copy example/lib/theme/mega_brand_colors.dart into your app or define your own MegaColorScheme values.
0.0.2 - 2026-05-18 #
Added #
- README preview screenshots from the example app.
- Declared package platform support for Android and iOS.
- Core widgets:
MegaAppBar,MegaButton,MegaBottomSheet. - Feedback and display widgets:
MegaLoadingIndicator,MegaLinearProgressIndicator,MegaCircularProgressIndicator,MegaDivider,MegaSnackBar. - Navigation:
MegaStepBars.
Changed #
- Updated package metadata for pub.dev publication.
- Included the example app in the published package archive.
Fixed #
- Replaced the license file with canonical Apache-2.0.
- Updated README license text from MIT to Apache-2.0.
- Fixed
MegaBottomSheetbehavior and layout edge cases.