At step 5th in `Get to know Firebase for Flutter` codelabs, the screenshot is not synced with code
- Dominant language
- Dart
- Stars
- 3.1k
- Forks
- 3.5k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 95
Description
```
// Copyright 2022 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// step-05
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'widgets.dart';
class AuthFunc extends StatelessWidget {
const AuthFunc({
super.key,
required this.loggedIn,
required this.signOut,
});
final bool loggedIn;
final void Function() signOut;
@override
Widget build(BuildContext context) {
return Row(
children: [
Padding(
padding: const EdgeInsets.only(left: 24, bottom: 8),
child: StyledButton(
onPressed: () {
!loggedIn ? context.push('/sign-in') : signOut();
},
child: !loggedIn ? const Text('RSVP') : const Text('Logout')),
),
Visibility(
visible: loggedIn,
child: Padding(
padding: const EdgeInsets.only(left: 24, bottom: 8),
child: StyledButton(
onPressed: () {
context.push('/profile');
},
child: const Text('Profile')),
))
],
);
}
}
```
I noticed a discrepancy between your code and the screenshots in the codelab. When I ran the code, the profile button was supposed to appear, but it didn't. Could you please update the screenshot for that page?
Contributor guide
Assessment
This issue has not been assessed yet.