child: GestureDetector(
                  onHorizontalDragEnd: (endDetails){
                    double velocity = endDetails.primaryVelocity;
                    if (velocity < 0) {
                      print('left');
                    } else {
                      print('right');
                    }
                  },
                  onVerticalDragEnd: (endDetails) {
                    double velocity = endDetails.primaryVelocity;
                    if (velocity < 0) {
                      print('up');
                    } else {
                      print('down');
                    }
                  },


                  child: Stack(
                  children: brickMatrix,

                ),

  

相关文章:

  • 2021-11-26
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-09-03
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案