Enhance your Flutter app's text presentation with TypeSet, the all-in-one solution for text styling and formatting that's as dynamic as your app needs to be. Inspired by familiar markdown formatting, TypeSet allows you to seamlessly integrate rich text features, including variable font sizes and web links, without disrupting the underlying logic of your code. With backend-driven formatting capability, WhatsApp-like ease, and additional formatting options, TypeSet offers the fluidity to make any text come alive!
![Screenshot 2023-03-18 at 10 25 42](https://private-user-images.githubusercontent.com/35066779/292366869-34c49da7-4a47-41a2-8af1-0f9d5a093689.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwMjA2MDIsIm5iZiI6MTcyNTAyMDMwMiwicGF0aCI6Ii8zNTA2Njc3OS8yOTIzNjY4NjktMzRjNDlkYTctNGE0Ny00MWEyLThhZjEtMGY5ZDVhMDkzNjg5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMwVDEyMTgyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1Yjk2YTgzNjRmNGNiOTZlZDJkZDk1YjRhZjAxYWM5M2E0MmM5N2Y3M2UyODg3OGRmNGRjNGRhZmU5NDI5N2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.X_VvcQsIa2lyD0T6pmDziVMbPVbBbGRXRQjKP1vkEgs)
Craft the perfect user experience with customizable text that embraces bold, italic, strikethrough, underline, monospace, hyperlinks, and dynamic font sizes – all at your fingertips.
To unleash the power of TypeSet in your Flutter application, ensure you have the Flutter SDK installed and up to date.
In your pubspec.yaml
, under dependencies, add the following line:
dependencies:
typeset: ^latest_version
Run the following command to install the package:
flutter packages get
Utilize the TypeSet widget as easily as you would use the native Text.rich()
in Flutter:
import 'package:typeset/typeset.dart';
// Bold Text Example
TypeSet('Hello, *World!*'); // Renders 'World!' in bold
// Italic Text Example
TypeSet('Hello, _World!_'); // Renders 'World!' in italic
// Strikethrough Text Example
TypeSet('Hello, ~World!~'); // Renders 'World!' with a strikethrough
// Underline Text Example
TypeSet('Hello #World!#'); // Renders 'World!' underlined
// Monospace Text Example
TypeSet('Hello, `World!`'); // Renders 'World!' in monospace
// Hyperlink Text Example
TypeSet('§google.com|https://google.com§'); // Renders 'google.com' as a clickable link
// Dynamic Font Size Example
TypeSet('Hey, *Hello world<30>*'); // Renders 'Hello world' with font size 30
TypeSet inherits all properties of the Text.rich()
widget, allowing for a familiar and versatile configuration experience.
Example:
Typeset('*Hello ¦* World*');
- Backend-driven formatting: Keep your text styling logic server-side for easy updates without the need to redeploy your app.
- Rich markdown-like formatting: Easily implement bold, italic, strikethrough, underline, monospace, and hyperlinked text.
- Dynamic font resizing: Adjust text sizes on the fly for emphasis or accessibility.
- Extensible: Designed with openness for adding more styling options in future updates.
Have ideas for more features? Found a bug? Feel free to open an issue on our issue tracker. Your contributions make TypeSet better for everyone.
Remember to include accurate links where necessary, like a link to the image of the demo snapshot, and the issue tracker. Also, replace the placeholder ^latest_version
with the actual latest version number of your package.