Hide unfinished features in release mode
This commit is contained in:
parent
fa1717a053
commit
7fe648ea77
@ -168,7 +168,7 @@ class _FileElementState extends State<FileElement> {
|
||||
},
|
||||
),
|
||||
Visibility(
|
||||
visible: kReleaseMode,
|
||||
visible: !kReleaseMode,
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.share_outlined),
|
||||
title: const Text("Teilen"),
|
||||
|
@ -75,7 +75,7 @@ class AppointmentDetails {
|
||||
leading: const Icon(Icons.person),
|
||||
title: Text("Lehrkraft: (${timetableData.te[0].name}) ${timetableData.te[0].longname}"),
|
||||
trailing: Visibility(
|
||||
visible: kReleaseMode,
|
||||
visible: !kReleaseMode,
|
||||
child: IconButton(
|
||||
icon: const Icon(Icons.textsms_outlined),
|
||||
onPressed: () {
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
import 'package:filesize/filesize.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:package_info/package_info.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@ -229,7 +230,9 @@ class _SettingsState extends State<Settings> {
|
||||
visible: settings.val().devToolsEnabled,
|
||||
child: Column(
|
||||
children: [
|
||||
ListTile(
|
||||
Visibility(
|
||||
visible: !kReleaseMode,
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.logo_dev_outlined),
|
||||
title: const Text("Logging verbosity"),
|
||||
trailing: DropdownButton<String>(
|
||||
@ -240,6 +243,7 @@ class _SettingsState extends State<Settings> {
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
leading: const CenteredLeading(Icon(Icons.image_outlined)),
|
||||
title: const Text("Cached Thumbnails löschen"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user