search ESC

Searching…

No results for "".

Type at least 2 characters to search.

Docs
You are viewing an older version (0.0.5). Go to the latest.

Font Style

Toggle between italic and normal text style using simple class names.

WText('Italic Text', className: 'italic');
WText('Normal Text', className: 'not-italic');

Basic Usage

Apply italic to make text italicized, or not-italic to reset it to the normal font style:

WText('Important note', className: 'italic text-gray-700 dark:text-gray-300');
WText('Regular text', className: 'not-italic');

Quick Reference

Class Flutter FontStyle Description
italic FontStyle.italic Renders text in italic.
not-italic FontStyle.normal Resets text to normal style.

Responsive Design

Combine with breakpoint prefixes to apply italic only at certain screen sizes:

WText('Responsive italic', className: 'not-italic md:italic');