Skip to content

Commit baf08a4

Browse files
authored
Fix top nav (#12940)
I forgot to remove this conditional rendering of the top nav when FWE landed. ## Presubmit checklist - [x] If you are unwilling, or unable, to sign the CLA, even for a _tiny_, one-word PR, please file an issue instead of a PR. - [x] If this PR is not meant to land until a future stable release, mark it as draft with an explanation. - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style)—for example, it doesn't use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first-person pronouns). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent 5a01bfd commit baf08a4

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

site/lib/src/components/layout/header.dart

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,22 @@ class DashHeader extends StatelessComponent {
5151
],
5252
),
5353

54-
// Only show the nav items if the tutorial is active for now.
55-
if (activeEntry == ActiveNavEntry.learn)
56-
ul(classes: 'nav-items', [
57-
_NavItem(
58-
href: '/',
59-
label: 'Home',
60-
isActive: activeEntry == ActiveNavEntry.home,
61-
),
62-
_NavItem(
63-
href: '/learn',
64-
label: 'Learn',
65-
isActive: activeEntry == ActiveNavEntry.learn,
66-
),
67-
const _NavItem(
68-
href: 'https://api.flutter.dev',
69-
label: 'Reference',
70-
),
71-
]),
54+
ul(classes: 'nav-items', [
55+
_NavItem(
56+
href: '/',
57+
label: 'Home',
58+
isActive: activeEntry == ActiveNavEntry.home,
59+
),
60+
_NavItem(
61+
href: '/learn',
62+
label: 'Learn',
63+
isActive: activeEntry == ActiveNavEntry.learn,
64+
),
65+
const _NavItem(
66+
href: 'https://api.flutter.dev',
67+
label: 'Reference',
68+
),
69+
]),
7270

7371
div(
7472
classes: 'navbar-contents',

site/lib/src/style_hash.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// dart format off
33

44
/// The generated hash of the `main.css` file.
5-
const generatedStylesHash = 'kqT7v0wrEV/S';
5+
const generatedStylesHash = '';

0 commit comments

Comments
 (0)