poor_text 0.0.0 copy "poor_text: ^0.0.0" to clipboard
poor_text: ^0.0.0 copied to clipboard

A parody package for rich_text

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

0
likes
125
points
22
downloads

Publisher

verified publisherratulicious.me

Weekly Downloads

A parody package for rich_text

Repository (GitHub)
View/report issues

Topics

#parody #broken

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_fonts

More

Packages that depend on poor_text