Extra Challenge: 3D Pushable Button

Instructions

Implement a PushableButton class that looks like this:

Some classes you will need to implement this are:

  • Stack
  • Container
  • AnimationController
  • AnimatedBuilder
  • GestureDetector

Note: The main goal of this challenge is to learn how to use the techniques covered in this section.

It's ok if you get stuck or can't complete this. Once you have given it your best shot, you can compare your solution with my completed project on GitHub:

This contains a lib folder that implements the PushableButton widget, and an example folder with a simple Flutter app that shows how to use it.

Complete and Continue  
Discussion

2 comments