re-worked the game details page tabs

This commit is contained in:
Carlos Lopez-Rosario
2020-05-02 19:44:46 -04:00
parent 8d2477f3e7
commit bd53761736
2 changed files with 16 additions and 28 deletions

View File

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

View File

@@ -152,7 +152,7 @@ class GameCard extends StatelessWidget {
color: Colors.black12,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisSize: MainAxisSize.min,
//mainAxisSize: MainAxisSize.min,
children: <Widget>[
Expanded(
child: _homeAwayImageOrder(