Skip to content

Instantly share code, notes, and snippets.

@red-star25
Last active October 5, 2021 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save red-star25/65b62ffc0867442915e2f8c7a84e2e6e to your computer and use it in GitHub Desktop.
Save red-star25/65b62ffc0867442915e2f8c7a84e2e6e to your computer and use it in GitHub Desktop.
@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