Documentation Index
Fetch the complete documentation index at: https://starrycodes.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
📐 Screen Dimensions
The total size of the screen. Equivalent to MediaQuery.sizeOf(context).final width = context.screenSize;
The width of the screen in logical pixels.final width = context.screenWidth;
The height of the screen in logical pixels.// Dynamically size a container to half the screen height
Container(height: context.screenHeight * 0.5);
🧭 Orientation
Current device orientation (portrait or landscape)Orientation currentOrientation = context.orientation;
Returns true if the device is in landscape mode.bool wideMode = context.isLandscape;
Returns true if the device is in portrait mode.bool tallMode = context.isPortrait;
🎨 Theme & System
Returns true if the system theme is dark. final color = context.isDarkMode ? Colors.white : Colors.black;
The current platform brightness (light or dark). Brightness current = context.brightness;
Safe area padding (e.g., for notches or Dynamic Island).Padding(padding: context.safePadding, child: ...);
Returns true if the software keyboard is currently visible (bottom view insets > 0).if (context.isKeyboardVisible) FocusScope.of(context).unfocus();