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,
                  ),