flutter_bounceable
flutter_bounceable copied to clipboard
Issue regarding simultaneous bounce effect
i am new to flutter so do not understand much of widget , tree stuff but will try best to explain the issue.
Issue
It is specifilcally regarding touchpad on laptops. Whenever in a widget tree if there two or more than two Bounceable widget with one being child and other being parent then taping on one of the child widget create bouncy effect for both child as well as for the parent Bounceable widgets.
Video
Avoid the black flickering (Screenrecorder issue).
https://user-images.githubusercontent.com/45158405/163630124-6bfecdae-4b37-48fd-bb09-58dbebd8fbfb.mp4
Code
Bounceable(
scaleFactor: 0.5,
onTap: () {},
child: Container(
color: Colors.pink,
height: 700,
width: 200,
child: Bounceable(
scaleFactor: 0.5,
onTap: () {},
child: Center(
child: Container(
width: 200,
color: Colors.green,
height: 200,
child: Bounceable(
scaleFactor: 0.2,
onTap: () {},
child: const Center(
child: Icon(
Icons.settings,
size: 50,
),
),
),
),
),
),
),
),
@Akaatsukhi Cool, will take a look at it when i'm free, so the expected behaviour would be:
- Tapping the child widget will not affect the parent to bounce, correct?