Codelessly / ResponsiveFramework

Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple. Demo: https://gallery.codelessly.com/flutterwebsites/minimal/
https://codelessly.com
MIT License
1.25k stars 150 forks source link

From 0.2.0 to 1.0.0 #136

Closed lpdevit closed 10 months ago

lpdevit commented 1 year ago

Hello, with version 0.2.0 I had this in my main.dart

builder: (context, child) => ResponsiveWrapper.builder(
          BouncingScrollWrapper.builder(context, child!),
          maxWidth: 1200,
          minWidth: 300,
          defaultScale: true,
          breakpoints: [
            const ResponsiveBreakpoint.resize(300, name: MOBILE),
            const ResponsiveBreakpoint.autoScaleDown(450, name: PHONE),
            const ResponsiveBreakpoint.resize(800, name: TABLET),
            const ResponsiveBreakpoint.autoScaleDown(1700, name: DESKTOP),
          ],
        ),

Could you please write here the code to get the exact same behavior with the new 1.0.0 version? Thank you

lpdevit commented 1 year ago

@rayliverified

rayliverified commented 1 year ago

I'll see if I can update the migration guide and example app this weekend.

Meanwhile, I'd point you to the example to see the updated usage of the ResponsiveScaledBox.

Thank you for your patience!

marcuscorreasmash commented 1 year ago

I'll see if I can update the migration guide and example app this weekend.

Meanwhile, I'd point you to the example to see the updated usage of the ResponsiveScaledBox.

Thank you for your patience!

i'm waiting.. same problem here.. tks

yarmat commented 1 year ago

any news?

manh-nguyen-dev commented 1 year ago

same problem, @rayliverified could you guide us to update this code in version 1.0.0, pls?

ranulfo commented 1 year ago

I'm also waiting

shafdanny commented 1 year ago

Any update on this?

abdullahzreqat commented 1 year ago

Any Update??

PieterWvdV commented 1 year ago

I have copied the new example exactly as it is in my main.dart. It gives me the following error no matter what values and variations I have tried of switching widgets around in the tree below the new ResponsiveBreakpoints.builder.

A conditional value was caught referencing a nonexistent breakpoint.

ResponsiveValue requires a parent ResponsiveWrapper to reference breakpoints. Add a ResponsiveWrapper or remove breakpoint references.
The relevant error-causing widget was: 
  InheritedResponsiveBreakpoints InheritedResponsiveBreakpoints:file:///C:/pathtopubcache/Pub/Cache/hosted/pub.dev/responsive_framework-1.1.0/lib/responsive_breakpoints.dart:270:12

I have flutter cleaned, pub get, rebuild and invalidated cache and restarted AS and done the flutter items again. No joy

rayliverified commented 12 months ago

Thank you for your patience. Migration guide is up!

https://github.com/Codelessly/ResponsiveFramework/blob/master/migration_0.2.0_to_1.0.0.md