Calendar shows what sport, and little box for games with more than 1 game
This commit is contained in:
@@ -3,17 +3,17 @@ import '../monthly_calendar.dart';
|
||||
import '../screens/sport.dart' as globals;
|
||||
class Schedule extends StatelessWidget{
|
||||
|
||||
final int sportID;
|
||||
Schedule(this.sportID);
|
||||
final List sport;
|
||||
Schedule(this.sport);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var calendar = Calendar(sportID);
|
||||
var calendar = Calendar(sport[0]);
|
||||
return StatefulBuilder(
|
||||
builder: (context, StateSetter setState) => Scaffold(
|
||||
appBar: AppBar(
|
||||
centerTitle: false,
|
||||
title: Text("49ers"),
|
||||
title: Text("${sport[1]}"),
|
||||
backgroundColor: Colors.green,
|
||||
),
|
||||
body: Container (
|
||||
|
||||
@@ -105,7 +105,7 @@ class Sport extends StatelessWidget {
|
||||
ListTile(
|
||||
title: IconButton(
|
||||
icon: Icon(Icons.calendar_today),
|
||||
onPressed: () => Navigator.pushNamed(context, '/Schedule',arguments: sport_ID),
|
||||
onPressed: () => Navigator.pushNamed(context, '/Schedule',arguments: [sport_ID, _curSport.name],),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user