Changed how sports page is made to be able to scroll all the way down
This commit is contained in:
@@ -68,13 +68,7 @@ class Sport extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
body: ListView(
|
body: bodyBuilder(),
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
|
||||||
children: <Widget>[
|
|
||||||
HorizontalGameCards(gameCard: gameCard, sportID: sport_ID,),
|
|
||||||
VerticalNewsFeed(newsFeed: feed, sportFilter: _curSport.name),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
drawer: Drawer(
|
drawer: Drawer(
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
@@ -115,6 +109,18 @@ class Sport extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget bodyBuilder() {
|
||||||
|
return Column(
|
||||||
|
children: <Widget>[
|
||||||
|
HorizontalGameCards(gameCard: gameCard, sportID: sport_ID,),
|
||||||
|
Expanded(
|
||||||
|
child: VerticalNewsFeed(newsFeed: feed, sportFilter: _curSport.name),
|
||||||
|
),
|
||||||
|
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
DropdownButtonHideUnderline buildDropdownButton(Item selectedSport, StateSetter setState) {
|
DropdownButtonHideUnderline buildDropdownButton(Item selectedSport, StateSetter setState) {
|
||||||
return DropdownButtonHideUnderline(
|
return DropdownButtonHideUnderline(
|
||||||
child: DropdownButton<Item>(
|
child: DropdownButton<Item>(
|
||||||
|
|||||||
@@ -201,62 +201,5 @@ class GameCard extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
// return Column(
|
|
||||||
// verticalDirection: VerticalDirection.up,
|
|
||||||
// children: <Widget>[
|
|
||||||
// Container(
|
|
||||||
// color: Colors.white,
|
|
||||||
// child: ListTile(
|
|
||||||
// leading: SizedBox(
|
|
||||||
// width: widthIn(ctx)/logoWidth,
|
|
||||||
// child: _homeAwayImageOrder(
|
|
||||||
// gameCard.location_indicator,
|
|
||||||
// gameCard.image,
|
|
||||||
// true, ctx)),
|
|
||||||
// title: FittedBox(
|
|
||||||
// fit: BoxFit.contain,
|
|
||||||
// child: Wrap(
|
|
||||||
// children: <Widget>[
|
|
||||||
// if (gameCard.status == null) // no game yet
|
|
||||||
// Text(
|
|
||||||
// '${_months[gameCard.date.month]} ${gameCard.date.day}'
|
|
||||||
// )
|
|
||||||
// else
|
|
||||||
// _pastGameScore(
|
|
||||||
// gameCard.location_indicator,
|
|
||||||
// gameCard.status,
|
|
||||||
// gameCard.team_score,
|
|
||||||
// gameCard.opponent_score,),
|
|
||||||
// ],
|
|
||||||
// )
|
|
||||||
// ),
|
|
||||||
// subtitle: FittedBox(
|
|
||||||
// fit: BoxFit.contain,
|
|
||||||
// child: Wrap(
|
|
||||||
// children: <Widget>[
|
|
||||||
// if (gameCard.status != null) // no game yet
|
|
||||||
// Text(
|
|
||||||
// '${_months[gameCard.date.month]} ${gameCard.date.day}', textAlign: TextAlign.center,
|
|
||||||
// )
|
|
||||||
// else
|
|
||||||
// Text('${gameCard.date.hour}:${gameCard.date.minute} PM'),
|
|
||||||
// ],
|
|
||||||
// )
|
|
||||||
// ),
|
|
||||||
// trailing: SizedBox(
|
|
||||||
// width: widthIn(ctx)/logoWidth,
|
|
||||||
// child: _homeAwayImageOrder(
|
|
||||||
// gameCard.location_indicator,
|
|
||||||
// gameCard.image,
|
|
||||||
// false, ctx)),
|
|
||||||
// onTap: () {
|
|
||||||
// print(gameCard.idSport);
|
|
||||||
//
|
|
||||||
// Navigator.pushNamed(ctx, '/Details', arguments: gameCard);
|
|
||||||
// },
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ],
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user