Skip to content

Commit

Permalink
better code
Browse files Browse the repository at this point in the history
using a comma and `length`
  • Loading branch information
shinriyo authored Jan 28, 2020
1 parent 0a54039 commit ff2742e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class _ExampleHomePageState extends State<ExampleHomePage>
height: MediaQuery.of(context).size.height * 0.6,
child: new TinderSwapCard(
orientation: AmassOrientation.BOTTOM,
totalNum: 6,
totalNum: welcomeImages.length,
stackNum: 3,
swipeEdge: 4.0,
maxWidth: MediaQuery.of(context).size.width * 0.9,
Expand All @@ -66,7 +66,10 @@ class _ExampleHomePageState extends State<ExampleHomePage>
swipeCompleteCallback:
(CardSwipeOrientation orientation, int index) {
/// Get orientation & index of swiped card!
}))),
},
),
),
),
);
}
}

0 comments on commit ff2742e

Please sign in to comment.