Skip to content

Commit

Permalink
Add "Plus" to the website navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Aug 20, 2024
1 parent 7d38851 commit ce0d161
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 12 additions & 8 deletions website/lib/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class PageTemplate extends StatelessWidget {
title: const Text("Hauptseite"),
onTap: () => context.go('/'),
),
ListTile(
leading: const Icon(Icons.home),
title: const Text("Plus"),
onTap: () => context.go('/plus'),
),
ListTile(
leading: const Icon(Icons.question_answer),
title: const Text("Docs"),
Expand Down Expand Up @@ -129,15 +134,14 @@ class _AppBarTitle extends StatelessWidget implements PreferredSizeWidget {
mainAxisAlignment: MainAxisAlignment.end,
children: [
if (!isPhone(context)) ...[
if (isSharezonePlusPageEnabledFlag)
Padding(
padding: const EdgeInsets.only(right: 30),
child: TransparentButton(
child: const Text("Plus"),
onTap: () =>
context.go('/${SharezonePlusPage.tag}'),
),
Padding(
padding: const EdgeInsets.only(right: 30),
child: TransparentButton(
child: const Text("Plus"),
onTap: () =>
context.go('/${SharezonePlusPage.tag}'),
),
),
TransparentButton(
child: const Text("Support"),
onTap: () => context.go('/${SupportPage.tag}'),
Expand Down
4 changes: 0 additions & 4 deletions website/lib/sharezone_plus/sharezone_plus_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// SPDX-License-Identifier: EUPL-1.2

import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:go_router/go_router.dart';
Expand All @@ -18,9 +17,6 @@ import 'package:sharezone_website/page.dart';
import 'package:sharezone_website/utils.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart';

final isSharezonePlusPageEnabledFlag =
kDebugMode || Flavor.fromEnvironment() == Flavor.dev;

typedef UserData = ({String username, String userId});

String getFirebaseProjectId() {
Expand Down

0 comments on commit ce0d161

Please sign in to comment.