diff --git a/lib/widgets/battery_indicator.dart b/lib/widgets/battery_indicator.dart index 0b0da06..bbda1af 100644 --- a/lib/widgets/battery_indicator.dart +++ b/lib/widgets/battery_indicator.dart @@ -67,18 +67,23 @@ class _BatteryIndicatorState extends State { }, borderRadius: BorderRadius.circular(8), child: Padding( - padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 8), + padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 8), child: Row( mainAxisSize: MainAxisSize.min, children: [ - Icon(batteryUi.icon, size: 20, color: batteryUi.color), - const SizedBox(width: 4), - Text( - displayText, - style: TextStyle( - fontSize: 14, - fontWeight: FontWeight.w500, - color: batteryUi.color, + Icon(batteryUi.icon, size: 18, color: batteryUi.color), + const SizedBox(width: 2), + Flexible( + child: Text( + displayText, + style: TextStyle( + fontSize: 12, + fontWeight: FontWeight.w500, + color: batteryUi.color, + ), + overflow: TextOverflow.visible, + maxLines: 1, + softWrap: false, ), ), ], diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements index 8f679c5..5a6782a 100644 --- a/macos/Runner/DebugProfile.entitlements +++ b/macos/Runner/DebugProfile.entitlements @@ -8,6 +8,8 @@ com.apple.security.network.server + com.apple.security.network.client + com.apple.security.device.bluetooth diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements index c269f52..02a2032 100644 --- a/macos/Runner/Release.entitlements +++ b/macos/Runner/Release.entitlements @@ -4,6 +4,8 @@ com.apple.security.app-sandbox + com.apple.security.network.client + com.apple.security.device.bluetooth