Skip to content

ResponsiveFramework + EasyLoading in builder #174

@kabo00os

Description

@kabo00os

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions