Skip to content

What I'm doing wrong? #31

@estevez-dev

Description

@estevez-dev

Question
I can't force plugin to change font size. see screenshot attached.

Code sample

AspectRatio(
      aspectRatio: 1.8,
      child: Stack(
        overflow: Overflow.clip,
        children: [
          FractionallySizedBox(
            widthFactor: 0.5,
            heightFactor: 1,
            child: Column(
              mainAxisSize: MainAxisSize.max,
              children: <Widget>[
                Expanded(
                  child: AutoSizeText(
                    '${entity.doubleState}${widget.unit}',
                    style: TextStyle(fontWeight: FontWeight.bold, fontSize: Sizes.stateFontSize),
                  ),
                ),
                Expanded(
                  child: AutoSizeText(
                      '${entity.displayName}',
                      style: TextStyle(fontSize: Sizes.stateFontSize)
                  ),
                ),
              ],
            ),
          ),
        ]),
    )

Screenshot_20190907-133725

Version

  • Flutter version: 1.7.8
  • auto_size_text version: 2.1.0

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions