πŸ’Έ 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.