focused_text 1.0.1 copy "focused_text: ^1.0.1" to clipboard
focused_text: ^1.0.1 copied to clipboard

A text widget that focuses on a specific paragraph or phrase. Inspired by the lyrics view in Apple Music.

Focused Text #

Description #

A text widget that focuses on a specific paragraph or phrase. Inspired by the lyrics view in Apple Music.

Usage #

FocusedTextWidget.fromString #

// Example
FocusedTextWidget.fromString(
  text: _text,
  autoPlay: true,
  autoPlayDuration: const Duration(seconds: 3),
)

// Using the fromString factory
factory FocusedTextWidget.fromString({
  Key? key,
  required String text,
  String separator = '.',
  int maxParagraphLines = 3,
  bool showSeparator = false,
  bool autoPlay = false,
  double resizeFactor = 0.4,
  Duration autoPlayDuration = const Duration(seconds: 5),
  TextStyle? textStyle,
})

FocusedTextWidget.fromList #

// Example
FocusedTextWidget.fromList(
  textList: _textList,
),

// Using the fromList factory
factory FocusedTextWidget.fromList({
  Key? key,
  required List<String> textList,
  int maxParagraphLines = 3,
  bool autoPlay = false,
  double resizeFactor = 0.4,
  Duration autoPlayDuration = const Duration(seconds: 5),
  TextStyle? textStyle,
})

Sneak Peek #

Mouse Pointer Auto Play
5
likes
160
pub points
6%
popularity

Publisher

verified publisherdennisaurus.dev

A text widget that focuses on a specific paragraph or phrase. Inspired by the lyrics view in Apple Music.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on focused_text