re-worked the game details page tabs
This commit is contained in:
@@ -14,13 +14,12 @@ class GameDetailsWidget extends StatelessWidget {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text("VS. ${gameCard.opponentTitle}"),
|
title: Text("VS. ${gameCard.opponentTitle}"),
|
||||||
),
|
),
|
||||||
body: ListView(
|
body: Column(
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
GameDetailsHeader(gameCard),
|
GameDetailsHeader(gameCard),
|
||||||
EasyAccess(),
|
EasyAccess(),
|
||||||
],
|
],
|
||||||
),
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} //Move to Kalebs ^^^^
|
} //Move to Kalebs ^^^^
|
||||||
@@ -139,7 +138,7 @@ class EasyAccess extends StatelessWidget {
|
|||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: size.height / 15,
|
height: size.height / 15,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.black12,
|
//color: Colors.black12,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
@@ -155,30 +154,19 @@ class EasyAccess extends StatelessWidget {
|
|||||||
var size = MediaQuery.of(context).size;
|
var size = MediaQuery.of(context).size;
|
||||||
label = (label == "Standings") ? "Standing" : label;
|
label = (label == "Standings") ? "Standing" : label;
|
||||||
print(label);
|
print(label);
|
||||||
var decoration = BoxDecoration(
|
return InkWell(
|
||||||
border: Border.all(
|
splashColor: Colors.green,
|
||||||
color: Color.fromRGBO(0, 112, 60, 1), //UNCC Green
|
child: Container(
|
||||||
),
|
width: size.width/2,
|
||||||
borderRadius: BorderRadius.circular(5)
|
height: size.height / 15,
|
||||||
);
|
color: label == 'Play-by-Play' ? Colors.green : Colors.black12,
|
||||||
return Container(
|
child: Center(
|
||||||
child: GestureDetector(
|
child: Text(label, style: TextStyle(fontSize: 16),),
|
||||||
onTap: () => print("clicked"),
|
),
|
||||||
//Navigator.pushNamed(context, "/$label"),
|
|
||||||
child: Card(
|
|
||||||
child: SizedBox(
|
|
||||||
width: size.width / 2.5,
|
|
||||||
child: Container(
|
|
||||||
decoration: decoration,
|
|
||||||
child:Container(
|
|
||||||
color: Colors.black12,
|
|
||||||
child: FittedBox(
|
|
||||||
fit: BoxFit.contain,
|
|
||||||
child: Text(label),
|
|
||||||
))),
|
|
||||||
),
|
),
|
||||||
),
|
onTap: () => {
|
||||||
),
|
print("Tapped $label")
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ class GameCard extends StatelessWidget {
|
|||||||
color: Colors.black12,
|
color: Colors.black12,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
mainAxisSize: MainAxisSize.min,
|
//mainAxisSize: MainAxisSize.min,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(
|
Expanded(
|
||||||
child: _homeAwayImageOrder(
|
child: _homeAwayImageOrder(
|
||||||
|
|||||||
Reference in New Issue
Block a user