Remove hero animation during sign_up screen transition
This commit is contained in:
parent
167dad9948
commit
13f27f59ad
|
@ -87,19 +87,16 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
title: Hero(
|
||||
tag: "sign_up",
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
child: StepProgressIndicator(
|
||||
totalSteps: 4,
|
||||
currentStep: 1,
|
||||
selectedColor: Theme.of(context).buttonColor,
|
||||
roundedEdges: Radius.circular(10),
|
||||
unselectedColor:
|
||||
Theme.of(context).colorScheme.stepProgressUnselectedColor,
|
||||
)),
|
||||
),
|
||||
title: Material(
|
||||
type: MaterialType.transparency,
|
||||
child: StepProgressIndicator(
|
||||
totalSteps: 4,
|
||||
currentStep: 1,
|
||||
selectedColor: Theme.of(context).buttonColor,
|
||||
roundedEdges: Radius.circular(10),
|
||||
unselectedColor:
|
||||
Theme.of(context).colorScheme.stepProgressUnselectedColor,
|
||||
)),
|
||||
);
|
||||
return Scaffold(
|
||||
appBar: appBar,
|
||||
|
|
|
@ -125,12 +125,9 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
|
|||
width: double.infinity,
|
||||
padding: EdgeInsets.symmetric(horizontal: 20),
|
||||
child: GradientButton(
|
||||
child: Hero(
|
||||
tag: "sign_up",
|
||||
child: Text(
|
||||
"New to ente",
|
||||
style: gradientButtonTextTheme(),
|
||||
),
|
||||
child: Text(
|
||||
"New to ente",
|
||||
style: gradientButtonTextTheme(),
|
||||
),
|
||||
linearGradientColors: const [
|
||||
Color(0xFF2CD267),
|
||||
|
|
|
@ -47,19 +47,15 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
|
|||
},
|
||||
),
|
||||
title: widget.isCreateAccountScreen
|
||||
? Hero(
|
||||
tag: "sign_up",
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
child: StepProgressIndicator(
|
||||
totalSteps: 4,
|
||||
currentStep: 2,
|
||||
selectedColor: Theme.of(context).buttonColor,
|
||||
roundedEdges: Radius.circular(10),
|
||||
unselectedColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.stepProgressUnselectedColor,
|
||||
),
|
||||
? Material(
|
||||
type: MaterialType.transparency,
|
||||
child: StepProgressIndicator(
|
||||
totalSteps: 4,
|
||||
currentStep: 2,
|
||||
selectedColor: Theme.of(context).buttonColor,
|
||||
roundedEdges: Radius.circular(10),
|
||||
unselectedColor:
|
||||
Theme.of(context).colorScheme.stepProgressUnselectedColor,
|
||||
),
|
||||
)
|
||||
: null,
|
||||
|
|
Loading…
Reference in a new issue