mason_logger_extension 0.3.4
mason_logger_extension: ^0.3.4 copied to clipboard
A powerful extension for Mason Logger that adds beautiful formatting, interactive prompts, QR codes, tables, and rich display features to your CLI applications.
0.3.4 #
Features ✨ #
- feat: improve input validation in askForString method
- Change validator function to return error message string instead of boolean
- Remove separate validatorDescription parameter for simpler, more intuitive API
- Return null from validator to indicate valid input, or error message for invalid input
- Enable more contextual error messages tied directly to validation logic
- Example:
validator: (input) => input.length < 8 ? 'API key must be at least 8 characters' : null
0.3.3 #
Features ✨ #
- feat: add validation support to askForString method
- Add
validatorfunction parameter to perform custom input validation - Add
validatorDescriptionparameter to provide custom error messages - Enable continuous re-prompting until validation passes
- Preserve default value functionality when validation fails
- Add
0.3.0 #
Features ✨ #
- feat: add new paragraph function for advanced text formatting
- Provides sophisticated text wrapping with support for ANSI escape sequences
- Handles bullet points with proper indentation and alignment
- Preserves paragraph structure with customizable separations
- Supports text alignment (left, right, center) and custom indentation
- Includes color parameter that preserves existing text formatting
- Enables hyphenation for long words and proper handling of special characters
0.2.8 #
Features ✨ #
- feat: add missing foreground colors to string extensions
- Add basic colors (
toBlack,toRed,toGreen,toYellow,toBlue,toMagenta,toCyan) - Add additional colors (
toLightGray,toDefaultForeground,toDarkGray,toWhite) - Ensures complete coverage of all available ANSI color options
- Add basic colors (
- feat: add background color extensions as new
LoggerStringExtensionBackgroundColors- Add all background color variants (e.g.,
toBlackBackground,toRedBackground, etc.) - Support all 16 standard background colors including light variants
- Enable easy application of background colors to strings
- Add all background color variants (e.g.,
0.2.7 #
Features ✨ #
- feat: add
encloseFreeCornersparameter to titled separator component- Allows enclosing the free extremities of the titled separator with top corner characters
- Improves visual aesthetics for hierarchical UI elements
- Creates a more enclosed, refined appearance when multiple separators are used together
0.2.6 #
Bug Fixes 🐛 #
- fix: ensure title box connections align perfectly with the table
- Correctly account for position offsets by including the corner character in calculations
- Maintain proper vertical alignment between title box and table connections
0.2.5 #
Bug Fixes 🐛 #
- fix: correct the alignment of title box connections to tables
- Fix position calculation for title connection points by accounting for corner character
- Ensure title box vertical borders align perfectly with table connections
0.2.4 #
Bug Fixes 🐛 #
- fix: resolve issue with ANSI color codes breaking table title connections
- Fix problem where
[90mcolor codes were visible in table borders - Completely rebuild the top line with uncolored characters before applying color
- Ensure proper connections between non-stretched title box and main table
- Fix visual inconsistency between different border styles with titled tables
- Fix problem where
0.2.3 #
Bug Fixes 🐛 #
- fix: correct table title connections for both stretched and non-stretched titles
- Use proper tee characters (teeRight and teeLeft) for stretched title bottom borders
- Use appropriate intersection characters (cross or teeUp) where title vertical borders meet table top line
- Fix visual representation when title box connects with table borders
0.2.2 #
Features ✨ #
- feat: add border color customization to table component
- feat: add title support to tables with configurable options
stretchTitleparameter controls whether title spans full table widthtitlePaddingparameter controls spacing around title text
- feat: create new titled separator component
- Supports left, center, and right alignment
- Shows a title box connected to a horizontal separator line
- Uses proper tee connections where title box meets separator line
- Customizable length, padding, border style, and color
0.2.1 #
Bug Fixes 🐛 #
- fix: resolve stack overflow in
LoggerBorder.getChar()by removing recursive call for doubled border style
0.2.0 #
Breaking Changes 🛠️ #
- refactor!: rename
LoggerBorderStyle.sharptoLoggerBorderStyle.doubledfor better clarity - feat!: add new border style
LoggerBorderStyle.heavyfor bold/thick borders
0.1.8 #
Features ✨ #
- feat: add
dynamicLengthparameter toframemethod to allow content-based width - feat: add
innerPaddingparameter toframemethod to control spacing between content and borders
0.1.7 #
Features ✨ #
- feat: add new text style extensions (
toBold,toItalic,toUnderlined,toBlink,toDim,toReverse) - feat: add new formatting utilities (
toBox,toIndentedBlock) - feat: add new status indicators (
toCrossMarked,toWarning,toInfo,toSuccess,toError)
0.1.6 #
- refactor!: rename
printTablemethod totablefor better consistency with Dart naming conventions - refactor!: rename
displayQRCodemethod toqrCodefor better consistency with Dart naming conventions - refactor!: rename
infoBulletListmethod tolistBulletsfor better consistency with Dart naming conventions - refactor!: rename
infoConnectedListmethod tolistAnchorsfor better consistency with Dart naming conventions
Features ✨ #
- feat: add
borderTypeparameter totablemethod to control table border style
0.1.5 #
0.1.4 #
Breaking Changes 🛠️ #
- refactor!: rename functions to follow native Dart naming conventions
- refactor!: remove imposed frame types
0.1.3Hey! Thanks for connecting - my post about Codika went viral but honestly not many people added me as a contact, so I guess you're really interested in what we're building! What caught your attention about it? #
We've got an amazing Discord community for Flutter devs starting up: https://discord.gg/SqDVTEkH Let me know if you have any questions!
Documentation 📝 #
- docs: add tags in pub.flutter-io.cn page for better discoverability
- docs: update package keywords and categories
0.1.2 #
Dependencies 📦 #
- deps: upgrade package dependencies to latest stable versions
- deps: update minimum SDK constraints
0.1.1 #
Documentation 📝 #
- docs: improve README.md with better examples and usage instructions
- docs: add API documentation and code examples
- docs: enhance package description
0.1.0+1 #
Features 🎉 #
- feat: add base logger extension with core logging utilities
- feat: add frames extension for boxed content and borders
- feat: add lists extension for bulleted and connected lists
- feat: add prompts extension for interactive user input
- feat: add QR code extension for terminal display
- feat: add table extension with Unicode box-drawing support
- feat: add string appender extension for formatted prefixes
- feat: add string colors extension for ANSI color support
- feat: add border library for consistent styling
Dependencies 📦 #
- deps: add mason logger dependency
- deps: add QR code generation support
- deps: add development dependencies for testing and analysis