Skip to content

Commit

Permalink
Fix example_02 - GestureDetector onTap
Browse files Browse the repository at this point in the history
  • Loading branch information
biocarl committed May 3, 2019
1 parent e21b8df commit 7b04cbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions example/example_02/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class SvgDrawingWithCustomControllerState
}

void _startAnimation() {
print('uhu');
if (_running) {
_controller.stop();
} else {
Expand All @@ -76,11 +75,11 @@ class SvgDrawingWithCustomControllerState
Widget build(BuildContext context) {
return Container(
decoration: new BoxDecoration(
color: Colors.purple,
color: Colors.green,
),
child: GestureDetector(
onTap: () => _startAnimation(),

behavior:HitTestBehavior.translucent,
//AnimatedDrawing with a custom controller
child: AnimatedDrawing.svg(
this.widget.assetName,
Expand Down
16 changes: 8 additions & 8 deletions example/example_02/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
version: "2.0.8"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -66,7 +66,7 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.5"
version: "0.12.3+1"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -94,7 +94,7 @@ packages:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.0"
version: "1.4.0"
petitparser:
dependency: transitive
description:
Expand All @@ -108,7 +108,7 @@ packages:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
version: "2.0.1"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -120,7 +120,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.5.4"
stack_trace:
dependency: transitive
description:
Expand All @@ -134,7 +134,7 @@ packages:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "1.6.8"
string_scanner:
dependency: transitive
description:
Expand All @@ -155,7 +155,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.5"
version: "0.2.2"
typed_data:
dependency: transitive
description:
Expand All @@ -178,5 +178,5 @@ packages:
source: hosted
version: "3.3.1"
sdks:
dart: ">=2.2.0 <3.0.0"
dart: ">=2.1.0 <3.0.0"
flutter: ">=0.7.3 <2.0.0"

0 comments on commit 7b04cbb

Please sign in to comment.