Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 Flutter_Extend Version 0.3.0 is now live! See our changelog for details.
Eliminate boilerplate and access screen metrics, orientation, and system themes instantly via simple BuildContext getters.
MediaQuery.sizeOf(context).
final width = context.screenSize;
final width = context.screenWidth;
// Dynamically size a container to half the screen height Container(height: context.screenHeight * 0.5);
portrait
landscape
Orientation currentOrientation = context.orientation;
true
bool wideMode = context.isLandscape;
bool tallMode = context.isPortrait;
final color = context.isDarkMode ? Colors.white : Colors.black;
Brightness current = context.brightness;
Padding(padding: context.safePadding, child: ...);
if (context.isKeyboardVisible) FocusScope.of(context).unfocus();
Was this page helpful?