Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResponsiveFramework + EasyLoading in builder #174

Open
kabo00os opened this issue Apr 1, 2024 · 0 comments
Open

ResponsiveFramework + EasyLoading in builder #174

kabo00os opened this issue Apr 1, 2024 · 0 comments

Comments

@kabo00os
Copy link

kabo00os commented Apr 1, 2024

hello everyone

how to use ResponsiveFramework and EasyLoading same time in builder ?

i use this but some times not work

builder: (context, myWidget) => ResponsiveBreakpoints.builder(
child: Builder(
builder: (context) {
myWidget = ResponsiveScaledBox(
width: ResponsiveValue<double?>(context, defaultValue: null, conditionalValues: [
Condition.equals(name: 'MOBILE_SMALL', value: (Platform.isIOS) ? 470 : 480),
]).value,
child: ClampingScrollWrapper.builder(context, myWidget!, dragWithMouse: true),
);
myWidget = EasyLoading.init()(context, myWidget);
return myWidget!;
},
),
breakpoints: [
Breakpoint(start: 0, end: (Platform.isIOS) ? 470 : 480, name: 'MOBILE_SMALL'),
Breakpoint(start: (Platform.isIOS) ? 471 : 481, end: 850, name: MOBILE),
Breakpoint(start: 850, end: 1080, name: TABLET),
Breakpoint(start: 1081, end: double.infinity, name: DESKTOP),
],
),

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant