48 lines
1.4 KiB
Dart
48 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../monthly_calendar.dart';
|
|
import '../screens/sport.dart' as globals;
|
|
class Schedule extends StatelessWidget{
|
|
|
|
final int sportID;
|
|
Schedule(this.sportID);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
var calendar = Calendar(sportID);
|
|
return StatefulBuilder(
|
|
builder: (context, StateSetter setState) => Scaffold(
|
|
appBar: AppBar(
|
|
centerTitle: false,
|
|
title: Text("49ers"),
|
|
backgroundColor: Colors.green,
|
|
),
|
|
body: Container (
|
|
child: calendar,
|
|
),
|
|
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, '/'),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
)
|
|
));
|
|
}
|
|
} |