BouncingScrollPhysics Not Bouncing

30 views
Skip to first unread message

Mark Valeriani

unread,
Mar 1, 2021, 10:33:14 AM3/1/21
to Flutter Development (flutter-dev)
In my code the bouncingscrollphysics is bouncing but only on one side not on both sides? Curious if there is something I have done wrong in my code? 

Column(
      children: [
        SizedBox(
            height: 50,
            child: ListView.builder(
              physics: BouncingScrollPhysics(
                  parent: AlwaysScrollableScrollPhysics()),
              shrinkWrap: true,
              scrollDirection: Axis.horizontal,
              itemCount: widget.groups.length,
              itemBuilder: (context, index) {
                return new GestureDetector(
                  child: Container(
                    width: 100,
                    child: Card(
                      elevation: 5,
                      shape: RoundedRectangleBorder(
                          side: BorderSide(color: Colors.white70, width: 1),
                          borderRadius: BorderRadius.circular(20)),
                      child: Center(
                        child: Text(
                          widget.groups[index],
                        ),
                      ),
                    ),
                  ),
                  onTap: () {
                    print("I clicked it ");
                  },
                );
              },
            )),
      ],
    );
Reply all
Reply to author
Forward
0 new messages