custom_sizable_text 1.1.5+3 copy "custom_sizable_text: ^1.1.5+3" to clipboard
custom_sizable_text: ^1.1.5+3 copied to clipboard

This package is simplifying the text widget and make it flexible and auto sized. By Using auto_size_text allowed text to be auto sized.

CustomSizableText #

This package is simplifying the text widget and make it flexible and auto sized.

By Using auto_size_text which allows text to be auto sized.

Getting started #

Add package to pubspec.yaml

    dependencies:
      custom_sizable_text: <latest-version>

Usage #

    Widget createText(String message,{Color? color})=>
 CustomText(
          text: message,
          size: 20,
          color: color ,//default is black
          fontWeight: FontWeight.w600,
          textOverflow: TextOverflow.visible,
          maxLines : 2
          );

Tips #

  • You can make text not sizable by change textType
  CustomText(
        text:"Hello World"
        size:15,
        color:Colors.black,
        fontWeight: FontWeight.w600,
        textOverflow: TextOverflow.visible,
        //Add this line
        textType: TextType.normal,
),
  • If you are using resizable text on unbounded hieght widget, we strongly recommend to set height for CustomText widget by wrapping it in SizedBox or use TextType.normal
//Using Sizedbox
SizedBox(
    height:  100,
    width:   200,
    child:  CustomText(
            text:"Hello World"
            size:15,
            color:Colors.black,
            fontWeight: FontWeight.w600,
            textOverflow: TextOverflow.visible,
             textType: TextType.normal,
                        ),
       ),
0
likes
0
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

This package is simplifying the text widget and make it flexible and auto sized. By Using auto_size_text allowed text to be auto sized.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

auto_size_text, flutter

More

Packages that depend on custom_sizable_text