prevent_orphan_text 0.0.3 copy "prevent_orphan_text: ^0.0.3" to clipboard
prevent_orphan_text: ^0.0.3 copied to clipboard

A text widget that prevents orphans.

A Flutter package for Dutch Coding Company projects. This package create a Text widget that prevents text orphans in the end of a text widget. It is inspired by the balanced_text package.

Features #

  • Wraps every function of a Text widget and prevents text orphans in the end of a text widget.

Live Example #

You can test the package by visiting the live Flutter Web example on our playground page

Getting started #

flutter pub add prevent_orphan_text to install the package in your project. Thats all!

Usage #

You can use a prevent orphan text widget by simply replacing your Text widget by and PreventOrphanText widget

PreventOrphanText(
                    text,
                  ),