Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@red-star25
Last active October 1, 2021 14:34
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/9b02b81f1b226a0f1b13dfe7189528d9 to your computer and use it in GitHub Desktop.
Save red-star25/9b02b81f1b226a0f1b13dfe7189528d9 to your computer and use it in GitHub Desktop.
@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