From 057f33fc502e5507345c443d94898ce3f56c867f Mon Sep 17 00:00:00 2001 From: Mikkeli Matlock Date: Tue, 26 Aug 2025 19:31:33 +0900 Subject: [PATCH] Improve floating window sizing and layout ratios MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Increase overlay window size from 180x100 to 320x280 for better visibility - Adjust portrait layout flex ratios: speed area 65, compass area 32 - Better proportions for overlay and main app interface 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- lib/main.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 8fb47bc..330b799 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -230,8 +230,8 @@ class _SpeedometerScreenState extends State with WidgetsBindi flag: OverlayFlag.defaultFlag, visibility: NotificationVisibility.visibilityPublic, positionGravity: PositionGravity.none, - width: 180, - height: 100, + width: 320, + height: 280, ); } catch (e) { print('Error showing floating window: $e'); @@ -327,7 +327,7 @@ class _SpeedometerScreenState extends State with WidgetsBindi children: [ // Speed area - takes most space, precise tap targets on text only Expanded( - flex: 7, + flex: 65, child: Container( width: double.infinity, color: Colors.transparent, @@ -382,7 +382,7 @@ class _SpeedometerScreenState extends State with WidgetsBindi ), // Compass area - compact but fully tappable for floating window Expanded( - flex: 3, + flex: 32, child: GestureDetector( onTap: _showFloatingWindow, // Tap navigation icon to show floating window onLongPress: _closeFloatingWindow, // Long press to close floating window