Skip to content

Commit

Permalink
fix: remove EmptyCard default values for width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien Lepage committed Sep 11, 2019
1 parent 2c7e8fc commit 5d60c76
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion example/lib/screens/card_grid_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class _CardGridScreenState extends State<CardGridScreen> {
columnCount: columnCount,
position: index,
duration: const Duration(milliseconds: 375),
child: ScaleAnimation(
child: const ScaleAnimation(
scale: 0.5,
child: FadeInAnimation(
child: EmptyCard(),
Expand Down
4 changes: 2 additions & 2 deletions example/lib/widgets/empty_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class EmptyCard extends StatelessWidget {

const EmptyCard({
Key key,
this.width = 100,
this.height = 100,
this.width,
this.height,
}) : super(key: key);

@override
Expand Down
9 changes: 1 addition & 8 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "0.1.1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -81,13 +81,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
shrine_images:
dependency: "direct main"
description:
name: shrine_images
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
sky_engine:
dependency: transitive
description: flutter
Expand Down
3 changes: 1 addition & 2 deletions lib/src/animation_executor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class AnimationExecutor extends StatefulWidget {
class _AnimationExecutorState extends State<AnimationExecutor>
with SingleTickerProviderStateMixin {
AnimationController _animationController;

Timer _timer;

@override
Expand All @@ -37,7 +36,7 @@ class _AnimationExecutorState extends State<AnimationExecutor>
AnimationController(duration: widget.duration, vsync: this);

if (AnimationLimiter.shouldRunAnimation(context) ?? true) {
_timer = Timer(widget.delay, () => _animationController.forward());
_timer = Timer(widget.delay, () => _animationController.forward());
} else {
_animationController.value = 1.0;
}
Expand Down

0 comments on commit 5d60c76

Please sign in to comment.