Skip to content

Instantly share code, notes, and snippets.

@red-star25
Last active October 1, 2021 14:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Image.asset(
"assets/images/area.jpg",
fit: BoxFit.cover,
height: double.infinity,
width: double.infinity,
),
Positioned(
bottom: 0,
left: 0,
right: 0,
child: Column(
children: [
Transform.translate(
offset: Offset(0, _animation.value),
child: Image.asset(
"assets/images/basketball.png",
height: 70,
width: 70,
fit: BoxFit.contain,
),
),
GestureDetector(
onTap: () {},
child: Container(
height: 20,
width: 60,
decoration: BoxDecoration(
color: Colors.blueGrey,
borderRadius: const BorderRadius.all(
Radius.circular(0),
),
border: Border.all(
color: Colors.teal,
width: 2,
),
),
),
),
],
),
)
],
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment