TypeSet

style: very good analysis pub package pub points

  • Make text formatting backend driven (if needed) with one widget!!
  • Whatsapp like formatting with some addons!! (input looks something like this)

Usage

  • BOLD → Hello, *World!*
  • ITALIC → Hello, _World!_
  • STRIKETHROUGH → Hello, ~World!~
  • UNDERLINE → Hello, //World!//
  • MONOSPACE → Hello, `World!`
  • LINK → google.com|https://google.com

See it in action!!

https://zapp.run/pub/typeset

Preview

Screenshot 2023-03-18 at 10 25 42

Installation 💻

❗ In order to start using typeset you must have the Flutter SDK installed on your machine.

Add typeset to your pubspec.yaml:

dependencies:
  typeset: #latest

Install it:

flutter packages get

🌟 Usage 🌟

import 'package:typeset/typeset.dart';

TypeSet(inputText: 'Hello, *World!*');
// returns 'World' with bold text

TypeSet(inputText: 'Hello, _World!_');
// returns 'World' with italic text

TypeSet(inputText: 'Hello, ~World!~');
// returns 'World' with strikethrough text

TypeSet(inputText: 'Hello //World!//');
// returns 'World' with underline text

TypeSet(inputText: 'Hello, `World!`');
// returns 'World' with monospace text

TypeSet(inputText: '[google.com|https://google.com]');
// returns 'google.com' with link to google.com

///TypeSet also has every property which the Text.rich() has, so you can configure accordingly

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

typeset
This supports the input from backend to be formatted with different formatters