This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 官網介紹: https://about.gitlab.com/blog/2018/10/24/setting-up-gitlab-ci-for-android-projects/ | |
# Flutter 部分參考: https://medium.com/@chima_37359/setup-gitlab-ci-in-flutter-android-project-89f6628828e8 | |
# 映像檔 | |
image: openjdk:8-jdk | |
# 定義腳本中要用的變數 | |
variables: | |
ANDROID_COMPILE_SDK: "28" | |
ANDROID_BUILD_TOOLS: "28.0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DragTarget( | |
builder: (context, candidateData, rejectedData) { | |
return Container( | |
width: 200, | |
height: 200, | |
color: _acceptedColor, | |
); | |
}, | |
onWillAccept: (MaterialColor data) { | |
debugPrint('onWillAccept()'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Draggable( | |
child: Container( | |
width: 100, | |
height: 100, | |
color: | |
Colors.orange, | |
), | |
feedback: Container( | |
width: 100, | |
height: 100, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Draggable( | |
// ... | |
onDragStarted: () { | |
debugPrint('onDragStarted(), 開始拖動'); | |
}, | |
onDraggableCanceled: (Velocity velocity, Offset offset) { | |
debugPrint('onDraggableCanceled(), 被放掉+沒被接受'); | |
}, | |
onDragCompleted: () { | |
debugPrint('onDragCompleted(), 被放掉+接受'); |