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

appbar title is center aligned #5162

Closed
drewwarren opened this issue Jul 30, 2016 · 4 comments
Closed

appbar title is center aligned #5162

drewwarren opened this issue Jul 30, 2016 · 4 comments

Comments

@drewwarren
Copy link

drewwarren commented Jul 30, 2016

Steps to Reproduce

look at the flutter gallery and see appbar titles are centered aligned.

Titles were previously left aligned, which I believe to be the correct default.

Flutter Doctor

[✓] Flutter (on Mac OS, channel master)
    • Flutter at /Users/drewwarren/flutter
    • Framework revision 2b3099c814 (4 hours ago), engine revision c4b2e675b1

[x] Android toolchain - develop for Android devices
    x Android Studio / Android SDK not found. Download from https://developer.android.com/sdk/
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)
    • XCode at /Applications/Xcode.app/Contents/Developer
    • Xcode 7.3.1, Build version 7D1014

[✓] Atom - a lightweight development environment for Flutter
    • flutter plugin version 0.2.3
    • dartlang plugin version 0.6.27
@eseidelGoogle
Copy link
Contributor

@abarth recently made titles center aligned on iOS. They're still left-aligned on Android. You can override this automatic platform behavior with AppBar(centerTitle=false).
https://docs.flutter.io/flutter/material/AppBar-class.html
The default behavior is to match the platform convention.

@eseidelGoogle
Copy link
Contributor

There are a bunch more platform-specific quirks like this we're working on at the moment:
https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22affects%3A+fidelity%22+label%3A%22%E2%8C%BA%E2%80%AC+platform-ios%22

@eseidelGoogle
Copy link
Contributor

#5039 was the PR btw. Closing "works as intended", but feel free to reopen if you disagree.

@github-actions
Copy link

github-actions bot commented Sep 6, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants