Skip to content

New styles on Flutter dartdocs are too subdued #1441

Closed
@Hixie

Description

@Hixie

The new styles are a bit disorienting because the name of the member you're looking at is so subdued.

e.g. https://docs.flutter.io/flutter/rendering/MainAxisAlignment-class.html

The most important thing on that page is the word "center" as far as I can tell, maybe "Constants". It should be "enum MainAxisAlignment", which is there twice but one of them is tiny and one of them is off on the right and grayed out. Actually even better would be for the header to be "MainAxisAlignment enum".

https://docs.flutter.io/flutter/painting/BorderRadius-class.html is another example

The first thing i read is "An immutable set of radii for each corner of a rectangle", which if i'd just landed there (e.g. following a link) would be confusing. When switching through my tabs, I need to know that that is the "BorderRadius class".

I think the solution is to move the <h5> from the right hand column into the first <section> of the main column, change it to an <h1>, and put the identifier before the keyword. The current styles already make that work pretty well. Maybe they could be tweaked a little but I'm not the right person for that.

cc @devoncarew @sethladd

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failuresarea-web-designSomething a web designer interested in helping could do.customer-flutterIssues originating from important to Flutter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions