摘要: main(){ List a = [ 0,2,0,2, 0,0,4,4, 2,0,4,0, 2,4,0,2 ]; List temp = right(a); //change to others later, List result = [[],[],[],[]]; for(int i=0; i<16; i++){ resu... 阅读全文
posted @ 2019-05-16 21:30 CrossPython 阅读(414) 评论(0) 推荐(0) 编辑
摘要: child: GestureDetector( onHorizontalDragEnd: (endDetails){ double velocity = endDetails.primaryVelocity; if (velocity < 0) { ... 阅读全文
posted @ 2019-05-16 11:20 CrossPython 阅读(445) 评论(0) 推荐(0) 编辑
摘要: https://medium.com/flutter-community/a-deep-dive-into-draggable-and-dragtarget-in-flutter-487919f6f1e4 This article is the sixth in a series of articl 阅读全文
posted @ 2019-05-16 09:55 CrossPython 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 方法一 使用alignment配合FractionalOffset:对于FractionalOffset的参数,我是这么理解的:相当于比例,第一个代表横向的权重,第二个代表竖向的权重,横0.9代表在横向十分之九的位置,竖0.1代表在竖向十分之一的位置 方法二 使用定位组件Positioned,其中的 阅读全文
posted @ 2019-05-16 09:40 CrossPython 阅读(387) 评论(0) 推荐(0) 编辑