Package selection guidance compiled from public package information, community data, and project usage.
Barbecue is a Flutter/Dart package designed to render formatted text tables in command-line applications. It supports customizable borders, padding, text spans, and ANSI color codes for enhanced visual output. Ideal for CLI tools needing structured, readable data presentation, it works across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. The package enables developers to create professional-looking console outputs with minimal effort.
Use cases
Displaying tabular data in CLI apps
Generating logs with formatted structure
Creating interactive command-line dashboards
Presenting configuration or status information
Building CLI-based reporting tools
Key features
Customizable table borders
ANSI color support
Text span formatting
Flexible padding options
Cross-platform compatibility
Suitable for
CLI application developers
Console-based tool creators
Data visualization in terminal environments
DevTools and diagnostic utilities
Educational or debugging command-line tools
Considerations
Requires terminal with ANSI color support
Limited to text-based output
Not suitable for GUI applications
May need additional styling for complex layouts
Dependent on console environment capabilities
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
barbecue
Render text tables for CLI-based dart applications.
Ported from Kotlin to Dart from Jake Wharton's picnic.
Features:
Borders (with custom styling)
Padding
Styling on table- row- or cell-level
Text alignment (bottom/middle/top - left/middle/right)
Row and column spans
ANSI Colors and backgrounds! (see example)
LIMITED support for emojis and other wide characters
By default, the layout algorithm assumes a real monospaced font, where every character is the exact same
width as other characters. Most modern "Mono" fonts don't work like that.
See for example this "monospaced" block:
😊😊😊
123
In a fully monospaced font, the first line with the emojis would be exactly as wide as the second line.
Chances are, that you see this block rendered like this (this depends on the font used):
Text based table layouts don't work if some characters are wider than others.
Luckily, most fonts used in terminals just render most emojis twice as wide as other characters:
Something like:
😊😊😊|
123456|
Will likely render like that in your terminal:
With the assumption that emojis are rendered twice as wide, we can build a valid text-table again.
Unfortunately, this is not going to work with all fonts, and not with all characters.
Some characters are rendered with a fractional width of a default character.
See for example bold unicode characters:
𝗛𝗲𝗮𝗱𝗲𝗿|
123456|
For emojis and other wide characters, you can use the experimental EmojiAwareLayout.
Your milage may wary. It is recommended not to use any unicode full-width or half-width characters
with barbecue, as there are many platform, font or even terminal specific differences in how
their glyphs are rendered, and this breaks the monospace-assumption of this package.
There is no way of drawing text tables if the glyphs are rendered with fractional widths of 1.5x.