Skip to content

headerBuilder - please add a note that this widget is only shown on narrow screens. #10691

@newskylabs

Description

@newskylabs

Page URL

https://firebase.google.com/codelabs/firebase-auth-in-flutter-apps#4

Page source

No response

Describe the problem

Hi,

When testing on a wide screen the headerBuilder widget is not displayed. Therefore the reader very probably will spend some time to debug the code in order to find the "bug" - which will be in vain as it is not a bug at all: the headerBuilder widget is only shown on narrow screens...

The sideBuilder widget has the opposite behaviour: it is only shown on wide screens. However, in the 'Side Builder' paragraph the following can be read: "The widget that sideBuilder returns will be displayed to the left of the sign in form, and only on wide screens." So the reader will expect to not see the widget on small screens.

A similar not in the "headerBuilder" paragraph would be very helpful.

Expected fix

Change the text: "Using the SignInScreen.headerBuilder argument, you can add whatever widgets you want above the sign-in form."

to something like: "Using the SignInScreen.headerBuilder argument, you can add whatever widgets you want above the sign-in form. It will be shown, however, only on narrow screens. On wide screens you can use a sideBuilder widget (see later on this page) which will be displayed only on wide screens to the left of the sign in form."

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

Labels

a.tut.codelab-googleRelates to codelabs hosted on codelabs.developers.google.comd.enhancementImproves docs with specific aske1-hoursEffort: < 8 hrsfrom.page-issueReported in a reader-filed concernp3-lowValid but not urgent concern. Resolve when possible. Encourage upvote to surface.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions