Open ghi8GPA opened 1 year ago
@ghi8GPA - Thanks for opening the issue. I was able to reproduce this. I will take a look and see if this is something we can resolve.
@ghi8GPA - We have merged a fix for this for those using Authenticator.builder()
, which will be included in the next authenticator release.
For anyone using AuthenticatedView()
to guard only a subset of the views in the app, solving this may require a fix for https://github.com/flutter/flutter/issues/115159
FYI - the fix for Authenticator.builder()
was released. I will keep this open to track the fix for AuthenticatedView
Description
Hello,
we are trying to implement a Flutter App using Amplify. We are integrating Authenticator component. It seems to work fine, but it is breaking all our Hero transition, when adding Authenticator.builder() to our Material App.
without Authenticator.builder()
with Authenticator.builder()
This is our code for the Authenticator Component:
@override Widget build(BuildContext context) { return Authenticator( child: MaterialApp( title: 'title'.tr(), debugShowCheckedModeBanner: false, localizationsDelegates: context.localizationDelegates, supportedLocales: context.supportedLocales, locale: context.locale, builder: Authenticator.builder(), home: Theme( data: Theme.of(context).copyWith( splashColor: Colors.transparent, highlightColor: Colors.transparent, textTheme: GoogleFonts.openSansTextTheme(Theme.of(context).textTheme), ), child: const MyStatefulWidget(), )) ); }
This is our code for the page transition:
onTap: () { HapticFeedback.selectionClick(); Navigator.push( context, PageRouteBuilder( transitionDuration: const Duration(milliseconds: 100), pageBuilder: ( BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation) { return VoucherDetailsScreen(_voucherList[i].id, _voucherList[i].image); }, transitionsBuilder: ( BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child) { return Align( child: FadeTransition( opacity: animation, child: child, ), ); }, ), );
Is is possibile that Authenticator.builder() breaks every Page transition using Heroes class?
Categories
Steps to Reproduce
Add - remove
builder: Authenticator.builder(),
with a Page transition using a Hero classScreenshots
![Uploading Simulator Screen Recording - iPhone 13 Pro Max - 2022-11-09 at 10.15.16.gif…]()
Platforms
Android Device/Emulator API Level
No response
Environment
Dependencies
Device
Iphone 13 Pro MaX (iOS simulator)
OS
iOs 15
Deployment Method
Amplify CLI + Custom Pipeline
CLI Version
10.3.2
Additional Context
No response
Amplify Config