πΈ poor_text
Text rendering for the broke and the bold.
poor_text
is a Flutter widget that parodies RichText
. It's the best worst way to render text in your app.
β¨ Features
- π§βπ¨ No rich styling: You get what you pay for.
- π¨ Greyscale color by default: Color is a premium.
- π€ Random Google Fonts: We use the "forgotten" fonts.
- π° Laggy rendering: For that slow, nostalgic effect.
- πͺ Auto-shrink text: The longer your string, the tinier it becomes.
- π Pretend rich text: HTML tags get stripped and mocked.
- π§ Fake PoorTextRich: Styled spans... except they're not.
π Getting Started
Install
Add this to your pubspec.yaml
:
dependencies:
poor_text:
git:
url: https://github.com/ratulhasanruhan/poor_text.git
We're too broke for pub.flutter-io.cn. Git is cheaper.
Import
import 'package:poor_text/poor_text.dart';
Basic Usage
PoorText(
'This is budget UI text.',
autoShrink: true,
laggy: true,
style: PoorTextStyle(allowColor: false),
)
Pretend Rich
PoorText(
'<b>This is bold?</b>',
pretendRich: true,
)
PoorTextRich
PoorTextRich([
PoorTextSpan(text: 'Still broke'),
PoorTextSpan(text: ' and can\'t style.'),
])
π§ͺ Run Tests
flutter test
We test failure. Thoroughly.
π« Disclaimer
This package is a parody and shouldn't be used in production. Unless you're really going for that "early web" aesthetic.
π License
MIT, because we're too poor to write our own license.
Libraries
- poor_text
- poor_text.dart A parody Flutter text widget for broke devs.