Add quick switch motion library with true deck exchanges
This commit is contained in:
@@ -50,10 +50,9 @@ void main() {
|
||||
addTearDown(tester.view.reset);
|
||||
}
|
||||
|
||||
for (final style in [
|
||||
QuickSwitchAnimation.swap,
|
||||
QuickSwitchAnimation.cardStack,
|
||||
]) {
|
||||
for (final style in QuickSwitchAnimation.values.where(
|
||||
(style) => style != QuickSwitchAnimation.tape,
|
||||
)) {
|
||||
testWidgets('${style.name} exchanges depth without recreating drafts', (
|
||||
tester,
|
||||
) async {
|
||||
@@ -94,7 +93,12 @@ void main() {
|
||||
);
|
||||
expect(
|
||||
card.transform.entry(3, 2) != 0,
|
||||
style == QuickSwitchAnimation.cardStack,
|
||||
{
|
||||
QuickSwitchAnimation.cardStack,
|
||||
QuickSwitchAnimation.deckSlide,
|
||||
QuickSwitchAnimation.flip,
|
||||
QuickSwitchAnimation.rolodex,
|
||||
}.contains(style),
|
||||
);
|
||||
await tester.pump(const Duration(milliseconds: 210));
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user