re-added route to game details page
This commit is contained in:
@@ -132,7 +132,6 @@ class GameCard extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(2),
|
||||
);
|
||||
var logoWidth = 4.5;
|
||||
var body = buildCard(ctx, logoWidth, _months);
|
||||
return SizedBox(
|
||||
width: widthIn(ctx),
|
||||
child: Card(
|
||||
@@ -140,7 +139,7 @@ class GameCard extends StatelessWidget {
|
||||
clipBehavior: Clip.antiAliasWithSaveLayer,
|
||||
child: Container(
|
||||
decoration: decoration,
|
||||
child: body,
|
||||
child: buildCard(ctx, logoWidth, _months),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -148,7 +147,8 @@ class GameCard extends StatelessWidget {
|
||||
|
||||
Widget buildCard(BuildContext ctx, double logoWidth, Map<int, String> _months) {
|
||||
|
||||
return Container(
|
||||
return GestureDetector(
|
||||
child: Container(
|
||||
color: Colors.black12,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
@@ -188,9 +188,8 @@ class GameCard extends StatelessWidget {
|
||||
Text('${gameCard.date.hour}:${gameCard.date.minute} PM'),
|
||||
],
|
||||
)
|
||||
|
||||
]
|
||||
)
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: _homeAwayImageOrder(
|
||||
@@ -200,6 +199,8 @@ class GameCard extends StatelessWidget {
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
onTap: () => Navigator.pushNamed(ctx, '/Details', arguments: gameCard),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user