ResponsiveFramework icon indicating copy to clipboard operation
ResponsiveFramework copied to clipboard

Hero-wrapped widget looks giant during transition

Open ppgcharge opened this issue 5 years ago • 9 comments

`MaterialApp(

      builder: (context, widget) => ResponsiveWrapper.builder(
        widget,
        maxWidth: 1200,
        minWidth: 450,
        defaultScale: true,
        breakpoints: [
          ResponsiveBreakpoint(breakpoint: 450, name: MOBILE),
          ResponsiveBreakpoint(breakpoint: 800, name: TABLET),
          ResponsiveBreakpoint(breakpoint: 1000, name: TABLET),
          ResponsiveBreakpoint(breakpoint: 1200, name: DESKTOP),
          ResponsiveBreakpoint(breakpoint: 2460, name: "4K"),
        ],
        background: Container(color: Color(0xFFF5F5F5))),...

`

ppgcharge avatar Apr 02 '20 09:04 ppgcharge

Thank you for reporting. This is a known issue.

The fix is on the roadmap for v0.2.0.

rayliverified avatar Apr 02 '20 12:04 rayliverified

Hi, is the v0.2.0 ready for update on pub.dev? I'm facing the same issue with Hero animations

carlosfiori avatar Dec 28 '20 02:12 carlosfiori

Would you be interested in helping contribute a fix? I can point you in the right direction.

rayliverified avatar Dec 28 '20 02:12 rayliverified

Absolutely

carlosfiori avatar Dec 28 '20 02:12 carlosfiori

Hello happy new year.

I managed to discover that the problem is in the overlay created by Hero, I can't see a solution through the package itself, I think that for correction we will have to extend the original Hero and integrate the part that creates the overlay with the package, thus creating a new one hero that respects the defined scales.

carlosfiori avatar Jan 03 '21 12:01 carlosfiori

@searchy2, I have the same problem. Have you found any workarounds so far?

Btw, I'd like to work on this If you can tell me from where I should start.

afnx avatar Feb 02 '21 19:02 afnx

@afnx Alois Deniel has solved some of the hero and drag target issues in his device preview. If you can find his method, we might be able to integrate it into the Responsive Framework.

rayliverified avatar Feb 03 '21 03:02 rayliverified

As a workaround I've been using the package animations (https://pub.dev/packages/animations#container-transform), he gives a similiar animation.

carlosfiori avatar Feb 24 '21 20:02 carlosfiori

I have the same problem in Hero transition . can you help me bro ?

seyedmohammadali avatar Feb 27 '21 08:02 seyedmohammadali