Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

prevent media query from rebuilding flutter widget

// You can get the screen size without the "MediaQuery.of(context)" using dart UI.
// there is more then just screen size! read the docs and source code :)

import 'dart:ui' as ui;

final screensize = (ui.window.physicalSize / ui.window.devicePixelRatio);
 
PREVIOUS NEXT
Tagged: #prevent #media #query #rebuilding #flutter #widget
ADD COMMENT
Topic
Name
6+7 =