flutter / flutter/website

At step 5th in `Get to know Firebase for Flutter` codelabs, the screenshot is not synced with code

Open
#13,816 5 comments 0 reactions 0 assignees View on GitHub
a.tut.codelab-google p2-medium
Dominant language
Dart
Stars
3.1k
Forks
3.5k
Avg merge
2d 4h
Merged PRs (30d)
95

Description

스크린샷 2024-10-25 오전 10 40 47

```
// 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.