Last active
October 5, 2021 10:56
-
-
Save red-star25/65b62ffc0867442915e2f8c7a84e2e6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: const Color(0xff2F2B53), | |
appBar: AppBar( | |
elevation: 0.0, | |
backgroundColor: const Color(0xff2F2B53), | |
leading: const Padding( | |
padding: EdgeInsets.all(8.0), | |
child: Icon(Icons.arrow_back_ios), | |
), | |
actions: const [ | |
Padding( | |
padding: EdgeInsets.all(8.0), | |
child: Icon( | |
Icons.more_horiz, | |
size: 32, | |
), | |
) | |
], | |
), | |
body: Padding( | |
padding: const EdgeInsets.symmetric(horizontal: 28.0), | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
Transform.translate( | |
offset: Offset(0.0, profileTopAnimation.value), // <----- Here | |
child: const ProfileTop(), | |
), | |
const SizedBox( | |
height: 12, | |
), | |
Opacity( | |
opacity: textOpacityAnimation.value, // <----- Here | |
child: const Text( | |
"David", | |
style: TextStyle( | |
fontSize: 44, | |
color: Colors.white, | |
fontWeight: FontWeight.w500, | |
), | |
), | |
), | |
const SizedBox( | |
height: 60, | |
), | |
Transform.translate( | |
offset: Offset(profileMenuAnimation.value, 0.0), // <----- Here | |
child: ProfileMenu(profileMenu: profileMenu)), | |
const SizedBox( | |
height: 20, | |
), | |
Transform.scale( | |
scale: signOutBtnAnimation.value, // <----- Here | |
child: const SignOutBtn(), | |
) | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment