Open kabo00os opened 5 months ago
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
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