Skip to content

Commit 7b58a94

Browse files
committed
feat: hide friends list in production and bump version to 1.1.2+1
1 parent 85e9249 commit 7b58a94

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

lib/home/home_page.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'dart:async';
22

33
import 'package:app_ui/app_ui.dart';
44
import 'package:firebase_database_repository/firebase_database_repository.dart';
5+
import 'package:flutter/foundation.dart';
56
import 'package:flutter/material.dart';
67
import 'package:flutter/services.dart';
78
import 'package:flutter_bloc/flutter_bloc.dart';
@@ -66,7 +67,9 @@ class _TabletView extends StatelessWidget {
6667
children: [
6768
SectionHeader(
6869
title: l10n.matchHistoryTitle,
69-
onMorePressed: () => context.push(FriendsListPage.routePath),
70+
onMorePressed: () => kDebugMode
71+
? context.push(FriendsListPage.routePath)
72+
: null,
7073
),
7174
const Expanded(
7275
child: MatchHistoryPanel(),
@@ -929,7 +932,8 @@ class _PhoneView extends StatelessWidget {
929932
),
930933
actions: [
931934
IconButton(
932-
onPressed: () => context.push(FriendsListPage.routePath),
935+
onPressed: () =>
936+
kDebugMode ? context.push(FriendsListPage.routePath) : null,
933937
icon: const Icon(Icons.person),
934938
),
935939
],

lib/main_production.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ void main() {
1818
final firebaseDatabaseRepository = FirebaseDatabaseRepository(
1919
firebase: FirebaseFirestore.instance,
2020
);
21+
2122
final userRepository = UserRepository(
2223
authenticationClient: authenticationClient,
2324
firebaseDatabaseRepository: firebaseDatabaseRepository,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: magic_yeti
22
description: Magic The Gathering Tracking App
3-
version: 1.1.1+2
3+
version: 1.1.2+1
44
publish_to: none
55

66
environment:

0 commit comments

Comments
 (0)