mega_ui_kit 0.0.7
mega_ui_kit: ^0.0.7 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.7 - 2026-05-29 #
Added #
MegaTextField— Figma-aligned text field: floating label, ghost hint overlay,inputTemplatemasking (#slots), clear/obscure toggles, character counter, read-only and error states.MegaTextFormField—FormFieldwrapper withvalidator,autovalidateMode, andonSaved. Controller is the single source of truth for the field value.MegaCards— card component withMegaCardStylepresets (icon, service, text, featured).MegaRadii.field— 16 dp semantic radius for text fields, dropdowns, and list tiles.- Kitchen sink example tabs for
MegaTextFieldandMegaCards. - Widget and unit tests for
MegaTextField,MegaTextFormField, andMegaCards.
Changed #
- Breaking:
MegaTextFieldAPI rewritten (removed the previous@Deprecatedstub). Renamelabel→labelText,hint→hintText,prefixIcon/suffixIcon→leading/trailing. MegaSearchField— reimplemented as a thin wrapper overMegaTextField(still@Deprecated; will be replaced).MegaTypography— dartdoc comments on display and heading styles.
Migration #
// 0.0.6
MegaTextField(
label: 'Email',
hint: 'name@example.com',
prefixIcon: Icon(Icons.email_outlined),
);
// 0.0.7
MegaTextField(
labelText: 'Email',
hintText: 'name@example.com',
leading: Icon(Icons.email_outlined),
);
Phone and card inputs with templates — validate with MegaTextField.isTemplateComplete
instead of isEmpty alone (leading literals may be inserted on focus).
0.0.6 - 2026-05-20 #
Fixed #
MegaDropdown— replace deprecatedSizeTransition.axisAlignmentwithAlign+heightFactor(Flutter 3.44+ / pub.dev Pana).
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.