Skip to content

Commit

Permalink
feat: support swipe callback
Browse files Browse the repository at this point in the history
  • Loading branch information
changyue authored and changyue committed Mar 19, 2019
1 parent a9c3aba commit d826275
Show file tree
Hide file tree
Showing 53 changed files with 1,724 additions and 161 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ build/
ios/.generated/
ios/Flutter/Generated.xcconfig
ios/Runner/GeneratedPluginRegistrant.*
.idea/workspace.xml
328 changes: 259 additions & 69 deletions .idea/workspace.xml

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## [0.0.1] - TODO: Add release date.
## 0.1.4

* TODO: Describe initial release.
- add `CardSwipeCompleteCallback` for the swiped orientation:
- add `CardDragUpdateCallback` for the swiping position.
4 changes: 2 additions & 2 deletions doc/api/__404error.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<header id="title">
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li class="self-crumb">flutter_tindercard package</li>
<li><a href="https://github.com/ShaunRain/flutter_tindercard">flutter_tindercard package</a></li>
</ol>
<div class="self-name">flutter_tindercard</div>
<form class="search navbar-right" role="search">
Expand Down Expand Up @@ -58,7 +58,7 @@ <h1>404: Something's gone wrong :-(</h1>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
5 changes: 4 additions & 1 deletion doc/api/flutter_tindercard/AmassOrientation-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ <h5>flutter_tindercard library</h5>

<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#enums">Enums</a></li>
<li><a href="flutter_tindercard/AmassOrientation-class.html">AmassOrientation</a></li>
<li><a href="flutter_tindercard/CardSwipeOrientation-class.html">CardSwipeOrientation</a></li>

<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#typedefs">Typedefs</a></li>
<li><a href="flutter_tindercard/CardBuilder.html">CardBuilder</a></li>
<li><a href="flutter_tindercard/CardDragUpdateCallback.html">CardDragUpdateCallback</a></li>
<li><a href="flutter_tindercard/CardSwipeCompleteCallback.html">CardSwipeCompleteCallback</a></li>

</ol>
</div>
Expand Down Expand Up @@ -229,7 +232,7 @@ <h2>Operators</h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/flutter_tindercard/AmassOrientation/hashCode.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/flutter_tindercard/AmassOrientation/toString.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h1>toString method</h1>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
5 changes: 4 additions & 1 deletion doc/api/flutter_tindercard/CardAnimation-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ <h5>flutter_tindercard library</h5>

<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#enums">Enums</a></li>
<li><a href="flutter_tindercard/AmassOrientation-class.html">AmassOrientation</a></li>
<li><a href="flutter_tindercard/CardSwipeOrientation-class.html">CardSwipeOrientation</a></li>

<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#typedefs">Typedefs</a></li>
<li><a href="flutter_tindercard/CardBuilder.html">CardBuilder</a></li>
<li><a href="flutter_tindercard/CardDragUpdateCallback.html">CardDragUpdateCallback</a></li>
<li><a href="flutter_tindercard/CardSwipeCompleteCallback.html">CardSwipeCompleteCallback</a></li>

</ol>
</div>
Expand Down Expand Up @@ -213,7 +216,7 @@ <h2>Static Methods</h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1>CardAnimation constructor</h1>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/flutter_tindercard/CardAnimation/backCardSize.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
6 changes: 3 additions & 3 deletions doc/api/flutter_tindercard/CardAnimation/frontCardAlign.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ <h2><span>Implementation</span> </h2>
? (beginAlign.x &gt; 3.0 ? beginAlign.x + 10.0 : baseAlign.x)
: (beginAlign.x &lt; -3.0 ? beginAlign.x - 10.0 : baseAlign.x);
return new AlignmentTween(
begin: beginAlign, end: new Alignment(endX, baseAlign.y))
begin: beginAlign, end: new Alignment(endX, baseAlign.y))
.animate(
new CurvedAnimation(parent: controller, curve: Curves.easeOut));
new CurvedAnimation(parent: controller, curve: Curves.easeOut));
}</code></pre>
</section>

Expand All @@ -98,7 +98,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/flutter_tindercard/CardAnimation/hashCode.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/flutter_tindercard/CardAnimation/noSuchMethod.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/flutter_tindercard/CardAnimation/runtimeType.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/api/flutter_tindercard/CardAnimation/toString.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h2><span>Implementation</span> </h2>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
5 changes: 4 additions & 1 deletion doc/api/flutter_tindercard/CardBuilder.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ <h5>flutter_tindercard library</h5>

<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#enums">Enums</a></li>
<li><a href="flutter_tindercard/AmassOrientation-class.html">AmassOrientation</a></li>
<li><a href="flutter_tindercard/CardSwipeOrientation-class.html">CardSwipeOrientation</a></li>

<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#typedefs">Typedefs</a></li>
<li><a href="flutter_tindercard/CardBuilder.html">CardBuilder</a></li>
<li><a href="flutter_tindercard/CardDragUpdateCallback.html">CardDragUpdateCallback</a></li>
<li><a href="flutter_tindercard/CardSwipeCompleteCallback.html">CardSwipeCompleteCallback</a></li>

</ol>
</div><!--/.sidebar-offcanvas-left-->
Expand All @@ -75,7 +78,7 @@ <h1>CardBuilder typedef </h1>

<footer>
<span class="no-break">
flutter_tindercard 0.0.1
flutter_tindercard 0.1.2
</span>

</footer>
Expand Down
101 changes: 101 additions & 0 deletions doc/api/flutter_tindercard/CardDragUpdateCallback.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="API docs for the CardDragUpdateCallback property from the flutter_tindercard library, for the Dart programming language.">
<title>CardDragUpdateCallback typedef - flutter_tindercard library - Dart API</title>
<!-- required because all the links are pseudo-absolute -->
<base href="..">

<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
<link rel="stylesheet" href="static-assets/github.css">
<link rel="stylesheet" href="static-assets/styles.css">
<link rel="icon" href="static-assets/favicon.png">

</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
<button id="sidenav-left-toggle" type="button">&nbsp;</button>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="index.html">flutter_tindercard</a></li>
<li><a href="flutter_tindercard/flutter_tindercard-library.html">flutter_tindercard</a></li>
<li class="self-crumb">CardDragUpdateCallback typedef</li>
</ol>
<div class="self-name">CardDragUpdateCallback</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>

<main>

<div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
<h5>flutter_tindercard library</h5>
<ol>
<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#classes">Classes</a></li>
<li><a href="flutter_tindercard/CardAnimation-class.html">CardAnimation</a></li>
<li><a href="flutter_tindercard/TinderSwapCard-class.html">TinderSwapCard</a></li>





<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#enums">Enums</a></li>
<li><a href="flutter_tindercard/AmassOrientation-class.html">AmassOrientation</a></li>
<li><a href="flutter_tindercard/CardSwipeOrientation-class.html">CardSwipeOrientation</a></li>

<li class="section-title"><a href="flutter_tindercard/flutter_tindercard-library.html#typedefs">Typedefs</a></li>
<li><a href="flutter_tindercard/CardBuilder.html">CardBuilder</a></li>
<li><a href="flutter_tindercard/CardDragUpdateCallback.html">CardDragUpdateCallback</a></li>
<li><a href="flutter_tindercard/CardSwipeCompleteCallback.html">CardSwipeCompleteCallback</a></li>

</ol>
</div><!--/.sidebar-offcanvas-left-->

<div class="col-xs-12 col-sm-9 col-md-8 main-content">
<h1>CardDragUpdateCallback typedef </h1>

<section class="multi-line-signature">
<span class="returntype">void</span>
<span class="name ">CardDragUpdateCallback</span>
(<wbr><span class="parameter" id="CardDragUpdateCallback-param-details"><span class="type-annotation">DragUpdateDetails</span> <span class="parameter-name">details</span></span>)
</section>

<section class="desc markdown">
<p><code>DragUpdateDetails</code> of swiping card.</p>
</section>
<section class="summary source-code" id="source">
<h2><span>Implementation</span> </h2>
<pre class="language-dart"><code class="language-dart">typedef CardDragUpdateCallback = void Function(DragUpdateDetails details);</code></pre>
</section>

</div> <!-- /.main-content -->

<div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
</div><!--/.sidebar-offcanvas-->

</main>

<footer>
<span class="no-break">
flutter_tindercard 0.1.2
</span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
Loading

0 comments on commit d826275

Please sign in to comment.