Skip to content

Commit

Permalink
Small tweaks to fun examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
gskinner committed Jan 30, 2023
1 parent 5df1026 commit 9ae45fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions example/lib/examples/everything_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ class EverythingView extends StatelessWidget {
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (_, box) => GridView.count(
crossAxisCount: (box.maxWidth / 176).floor(),
crossAxisCount: (box.maxWidth / 192).floor(),
childAspectRatio: 0.85,
children: [
/***
A few fun / interesting examples
***/
tile(
'blur+fade+scale+tint',
'fade+tint+blur+scale',
a
.fadeIn(curve: Curves.easeOutCirc)
.untint(color: Colors.white)
.blurXY(begin: 16)
.scaleXY(begin: 1.5),
),
tile(
'blur+move',
'fade+blur+move',
a
.fadeIn(curve: Curves.easeOutCirc)
.fadeIn(curve: Curves.easeOutExpo)
.blurY(begin: 32)
.slideY(begin: -0.4, end: 0.4),
),
Expand Down Expand Up @@ -71,14 +71,14 @@ class EverythingView extends StatelessWidget {
.tint(color: Colors.red, end: 0.6),
),
tile(
'move+move',
'shake+slide+slide',
a
.shake(curve: Curves.easeInOut, hz: 0.5)
.moveX(curve: Curves.easeOut, begin: -30, end: 30)
.moveY(curve: Curves.bounceOut, begin: -30, end: 30),
.slideX(curve: Curves.easeOut, begin: -0.4, end: 0.4)
.slideY(curve: Curves.bounceOut, begin: -0.4, end: 0.4),
),
tile(
'scale+boxShadow',
'boxShadow+scale',
a
.boxShadow(
end: const BoxShadow(
Expand Down
4 changes: 2 additions & 2 deletions lib/src/effects/then_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import '../../flutter_animate.dart';
/// A special convenience "effect" that makes it easier to sequence effects after
/// one another. It does this by calculating a new inheritable delay by adding the
/// previous effect's end time (`delay` + `duration`) and its own optional [delay].
///
/// You can specify a negative [delay], but if the resultant inheritable delay
///
/// You can specify a negative [delay], but if the resultant inheritable delay
/// is less than `0` it will cause a runtime error.
///
/// This example shows [ThenEffect] in use:
Expand Down

0 comments on commit 9ae45fd

Please sign in to comment.