Skip to content

Required maxLines set to 1 to work in App Bar title  #74

@garyodonoghue

Description

@garyodonoghue

Steps to Reproduce
Changing Text to AutosizeText has no effect on the title in AppBar, needed to set maxLines to 1, maybe this should be the default value for max lines?

Code sample

return AppBar(
    title: AutoSizeText(
            "Some reeeeeeeeeeeeaaaaaalllly long title ",
//  maxLines: 1, ---> Setting this causes the text to resize to the default min font size, otherwise nothing changes
          )
  );

Version
Flutter 1.22.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8874f21e79 (6 days ago) • 2020-10-29 14:14:35 -0700
Engine • revision a1440ca392
Tools • Dart 2.10.3

auto_size_text version: "2.1.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions