flutter_placeholder_textlines
1.2.0, released 4 years ago by an unverified publisher
Widget that generates placeholder text lines for loading states
What it does
Creates a configurable set of random-width lines that can be animated, used as skeletons while data loads or for empty states.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Displaying loading placeholders
- Showing empty list items
- Creating skeleton screens for text content
Skip it when
- When you need complex skeletons with shapes or images
- When performance is critical and you want to avoid random width generation
Strengths
- Simple API
- Customizable color, opacity, width, height
- Optional animation
- Rebuilds with new widths on state change
Weaknesses
- Limited to text lines only
- No built-in support for images or complex shapes
- No theming integration
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency to pubspec and import the package
Widget _buildCustomColorSizePlaceholder() {
return Container(
width: 200,
child: PlaceholderLines(
count: 4,
align: TextAlign.center,
lineHeight: 8,
color: Colors.blueAccent,
),
);
}Alternatives
Packages that do the same job and could replace flutter_placeholder_textlines.
- mongol
Flutter widget package for displaying and editing vertical Mongolian text.
76Compare - re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - shimmer
Paints a moving highlight over skeleton placeholders and call-to-action text.
83Compare - redacted
Automatically generates a loading skeleton widget from your own widget tree.
52Compare