flutter_text_helpers 2.0.5 copy "flutter_text_helpers: ^2.0.5" to clipboard
flutter_text_helpers: ^2.0.5 copied to clipboard

A widget collection which simplifies the usage of Text() and TextField(). No need to use Theme.of(context) to access textTheme elements like bodytext1 or headline1, etc. Also provides shortcuts for co [...]

Flutter Text Helpers #

A collection of widgets which simplifies the usage of Text() and TextField()

Usage #

Import package:

import 'package:flutter_text_helpers/flutter_text_helpers.dart';

Use as widget instead of Text() or TextField()

Column(widgets: [
  
  // Shortcut for Text('Body text', style: Theme.of(context).textTheme.bodyText)
  BodyText1('Body text'),

  //Shortcut for Text('Body text', style: Theme.of(context).textTheme.bodyText.copyWith(color: Colors.blue))
  BodyText1('Body text', color: Colors.blue),

  //Shortcut for Text('Body text', style: Theme.of(context).textTheme.bodyText.copyWith(color: Colors.blue, fontSize: 12))
  BodyText1('YourBody text', color: Colors.blue, fontSize: 12),

//Shortcut for TextField(style: Theme.of(context).textTheme.bodyText.copyWith(color: Colors.blue, fontSize: 12), decoration: InputDecoration(hintText: ''Hint tex))
  BodyTextField1('Hint text', color: Colors.blue, fontSize: 12),

  // All parameters that Text() uses are still available
  BodyText('Your text', style: TextStyle(color: Colors.blue), overflow: Overflow.elipsis)

])

Available Widgets for Text #

BodyText1()
BodyText2()
HeadlineText1()
HeadlineText2()
HeadlineText3()
HeadlineText4()
HeadlineText5()
HeadlineText6()
SubtitleText1()
SubtitleText2()
ButtonText()
CaptionText()
OverlineText()

Available Widgets for TextField #

BodyTextField1()
BodyTextField2()
HeadlineTextField1()
HeadlineTextField2()
HeadlineTextField3()
HeadlineTextField4()
HeadlineTextField5()
HeadlineTextField6()
SubtitleTextField1()
SubtitleTextField2()
ButtonTextField()
CaptionTextField()
OverlineTextField()

Features and bugs #

Please file feature requests and bugs at the issue tracker.

3
likes
30
pub points
13%
popularity

Publisher

unverified uploader

A widget collection which simplifies the usage of Text() and TextField(). No need to use Theme.of(context) to access textTheme elements like bodytext1 or headline1, etc. Also provides shortcuts for color and fontSize.

Repository (GitLab)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_text_helpers