added missing implementation of "note to self", disabled breakers in debug environments

This commit is contained in:
2025-03-11 16:22:02 +01:00
parent 769fbc1b6a
commit 905206f242
5 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:package_info_plus/package_info_plus.dart';
import '../../api/apiResponse.dart';
@ -12,6 +13,8 @@ class BreakerProps extends DataHolder {
PackageInfo? packageInfo;
String? isBlocked(BreakerArea? type) {
if(kDebugMode) return null;
if(packageInfo == null) {
PackageInfo.fromPlatform().then((value) => packageInfo = value);
return null;