logic for game card

This commit is contained in:
Carlos Lopez-Rosario
2020-05-01 11:19:17 -04:00
parent 78049ba65f
commit 465eb96f4b
4 changed files with 48 additions and 75 deletions

View File

@@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:table_calendar/table_calendar.dart';
import '../screens/sport_schedule.dart';
import 'dart:convert';
@@ -95,52 +94,4 @@ class ScheduleObject {
DateTime d;
List<sport_schedule> sportSched;
ScheduleObject(this.d, this.sportSched);
}
class GameCardTest extends StatelessWidget{
final int sportID;
GameCardTest(this.sportID);
@override
Widget build(BuildContext context) {
final feed = GameCardFeed();
return StatefulBuilder(
builder: (context, StateSetter setState) => Scaffold(
appBar: AppBar(
centerTitle: false,
title: Text("49ers"),
backgroundColor: Colors.green,
),
body: HorizontalGameCards(gameCard: feed, sportID: sportID,),
drawer: Drawer(
child: ListView(
children: <Widget>[
DrawerHeader(
child: Text(
'Drawer Header',
style: TextStyle(
color: Colors.white,
fontSize: 24,
),
),
decoration: BoxDecoration(
color: Colors.green,
),
),
ListTile(
title: IconButton(
icon: Icon(Icons.home),
onPressed: () => Navigator.pushNamed(context, '/'),
),
),
],
),
)
));
}
}