Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
garyodonoghue opened this issue Nov 4, 2020 · 0 comments
Open

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

garyodonoghue opened this issue Nov 4, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@garyodonoghue
Copy link

garyodonoghue commented Nov 4, 2020

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant