Hide unfinished features in release mode
This commit is contained in:
@ -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,15 +230,18 @@ class _SettingsState extends State<Settings> {
|
||||
visible: settings.val().devToolsEnabled,
|
||||
child: Column(
|
||||
children: [
|
||||
ListTile(
|
||||
leading: const Icon(Icons.logo_dev_outlined),
|
||||
title: const Text("Logging verbosity"),
|
||||
trailing: DropdownButton<String>(
|
||||
value: "1",
|
||||
items: ["1", "2", "3"].map((e) => DropdownMenuItem<String>(value: e, child: Text(e))).toList(),
|
||||
onChanged: (e) {
|
||||
Visibility(
|
||||
visible: !kReleaseMode,
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.logo_dev_outlined),
|
||||
title: const Text("Logging verbosity"),
|
||||
trailing: DropdownButton<String>(
|
||||
value: "1",
|
||||
items: ["1", "2", "3"].map((e) => DropdownMenuItem<String>(value: e, child: Text(e))).toList(),
|
||||
onChanged: (e) {
|
||||
|
||||
},
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
|
Reference in New Issue
Block a user