You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a specific case where i was in need of in ensureScreenSize (for a web container where the size of the screen is not the all screen, to render an actual mobile experience on web). I saw that is it deprecated in release notes.
I have to fork your package to force a mediaQueryData (initializing mq in your code)
class ScreenUtilInit extends StatefulWidget {
/// A helper widget that initializes [ScreenUtil]
const ScreenUtilInit({
Key? key,
this.builder,
this.child,
this.rebuildFactor = RebuildFactors.size,
this.data,
this.designSize = ScreenUtil.defaultSize,
this.splitScreenMode = false,
this.minTextAdapt = false,
this.useInheritedMediaQuery = false,
this.ensureScreenSize = false,
this.enableScaleWH,
this.enableScaleText,
this.responsiveWidgets,
this.excludeWidgets,
this.fontSizeResolver = FontSizeResolvers.width,
}) : super(key: key);
final ScreenUtilInitBuilder? builder;
final Widget? child;
final bool splitScreenMode;
final bool minTextAdapt;
final bool useInheritedMediaQuery;
final bool ensureScreenSize;
final MediaQueryData? data;
final bool Function()? enableScaleWH;
final bool Function()? enableScaleText;
final RebuildFactor rebuildFactor;
final FontSizeResolver fontSizeResolver;
/// The [Size] of the device in the design draft, in dp
final Size designSize;
final Iterable<String>? responsiveWidgets;
final Iterable<String>? excludeWidgets;
It would be nice to have that native in your package
The text was updated successfully, but these errors were encountered:
Blyynd
changed the title
Does not take the MediaQueryData of the parent
[Feature/Enhancement] Does not take the MediaQueryData of the parent
Jun 19, 2024
I have a specific case where i was in need of in ensureScreenSize (for a web container where the size of the screen is not the all screen, to render an actual mobile experience on web). I saw that is it deprecated in release notes.
I have to fork your package to force a mediaQueryData (initializing mq in your code)
In your class
and passing to mq :
It would be nice to have that native in your package
The text was updated successfully, but these errors were encountered: