Added home-screen app-icon Notification badge
This commit is contained in:
@ -11,6 +11,8 @@ class DebugTile {
|
||||
bool onlyInDebug;
|
||||
DebugTile(this.context, {this.onlyInDebug = false});
|
||||
|
||||
bool devConditionFulfilled() => Provider.of<SettingsProvider>(context, listen: false).val().devToolsEnabled && (onlyInDebug ? kDebugMode : true);
|
||||
|
||||
Widget jsonData(Map<String, dynamic> data, {bool ignoreConfig = false}) {
|
||||
return callback(
|
||||
title: "JSON daten anzeigen",
|
||||
@ -31,8 +33,13 @@ class DebugTile {
|
||||
|
||||
Widget child(Widget child) {
|
||||
return Visibility(
|
||||
visible: Provider.of<SettingsProvider>(context).val().devToolsEnabled && (onlyInDebug ? kDebugMode : true),
|
||||
visible: devConditionFulfilled(),
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
|
||||
void run(void Function() callback) {
|
||||
if(!devConditionFulfilled()) return;
|
||||
callback();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user