Remove hero animation during sign_up screen transition

This commit is contained in:
Neeraj Gupta 2022-06-09 12:51:50 +05:30
parent 167dad9948
commit 13f27f59ad
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
3 changed files with 22 additions and 32 deletions

View file

@ -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,

View file

@ -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),

View file

@ -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,