croupier: No animations for pass cards
This makes it look better and makes the UI much more responsive.
Change-Id: I633908afbce2507333d5c0624dc748ab329b263f
diff --git a/lib/components/hearts/hearts.part.dart b/lib/components/hearts/hearts.part.dart
index c4d193e..60cef30 100644
--- a/lib/components/hearts/hearts.part.dart
+++ b/lib/components/hearts/hearts.part.dart
@@ -609,9 +609,7 @@
Widget handArea = new CardCollectionComponent(
hand, true, CardCollectionOrientation.suit,
- acceptCallback: cb,
dragChildren: draggable,
- acceptType: draggable ? DropType.card : null,
comparator: _compareCards,
width: config.width,
backgroundColor: Colors.grey[500],
@@ -626,8 +624,8 @@
Widget ccc = new CardCollectionComponent(
cards, true, CardCollectionOrientation.show1,
acceptCallback: cb,
- dragChildren: cb != null,
acceptType: cb != null ? DropType.card : null,
+ animationType: component_card.CardAnimationType.NONE,
backgroundColor: Colors.white,
altColor: Colors.grey[200],
useKeys: true);
diff --git a/lib/components/main_route.dart b/lib/components/main_route.dart
index 3aecfbe..4cbcf4d 100644
--- a/lib/components/main_route.dart
+++ b/lib/components/main_route.dart
@@ -37,10 +37,8 @@
// screen while the Store is initializing.
// https://github.com/vanadium/issues/issues/958
if (config.croupier.settings == null) {
- print("Splash screen side");
return _buildSplashScreen();
}
- print("Scaffold side");
return new Scaffold(
key: _scaffoldKey,
toolBar: new ToolBar(