-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
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.