Skip to content

Commit

Permalink
Activate Debugging entry in menu ONLY in debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
suhrmann committed Apr 14, 2020
1 parent e8144f9 commit ebfd9bd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/app-container.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart'; // To check for Debug/Release-Mode
import 'package:flutter/material.dart';
import 'package:Karlo/pages/welcome-page.dart';
import 'package:scoped_model/scoped_model.dart';
Expand Down Expand Up @@ -60,15 +61,14 @@ class _AppContainerState extends State<AppContainer> {
onTap: () => navigateTo('/about', context),
),

/*
// DEBUGGING Shit
Divider(),
ListTile(
leading: Icon(Icons.warning),
title: Text('DEBUGGING'),
onTap: () => navigateTo('/test_page', context),
),
*/
// DEBUGGING
kDebugMode ? Divider() : Container(),
kDebugMode ? ListTile(
leading: Icon(Icons.warning),
title: Text('DEBUGGING'),
onTap: () => navigateTo('/test_page', context),
)
: Container(),
],
),
);
Expand Down

0 comments on commit ebfd9bd

Please sign in to comment.