BIN
assets/school_logos/FAU.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/school_logos/FIU.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
assets/school_logos/LT.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/school_logos/MT.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/school_logos/Marshall.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/school_logos/NorthTexas.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/school_logos/ODU.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
assets/school_logos/RiceOwls.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/school_logos/SouthernMiss.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/school_logos/UAB.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/school_logos/UTEP.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/school_logos/UTSA.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/school_logos/uncc.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
assets/school_logos/wku.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
@@ -9,11 +9,7 @@
|
||||
/* Begin PBXBuildFile section */
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
|
||||
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
|
||||
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||
@@ -26,8 +22,6 @@
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
|
||||
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
|
||||
);
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
@@ -38,13 +32,11 @@
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
|
||||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
@@ -57,8 +49,6 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
|
||||
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -68,9 +58,7 @@
|
||||
9740EEB11CF90186004384FC /* Flutter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3B80C3931E831B6300D905FE /* App.framework */,
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
||||
9740EEBA1CF902C7004384FC /* Flutter.framework */,
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
||||
@@ -152,6 +140,7 @@
|
||||
TargetAttributes = {
|
||||
97C146ED1CF9000F007C117D = {
|
||||
CreatedOnToolsVersion = 7.3.1;
|
||||
DevelopmentTeam = W5P374VFZT;
|
||||
LastSwiftMigration = 1100;
|
||||
};
|
||||
};
|
||||
@@ -201,7 +190,7 @@
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
@@ -309,6 +298,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
DEVELOPMENT_TEAM = W5P374VFZT;
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
@@ -444,6 +434,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
DEVELOPMENT_TEAM = W5P374VFZT;
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
@@ -472,6 +463,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
DEVELOPMENT_TEAM = W5P374VFZT;
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
|
||||
16
lib/models/School.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class School {
|
||||
final String name;
|
||||
final AssetImage logo;
|
||||
final int win;
|
||||
final int loss;
|
||||
|
||||
School(
|
||||
this.name,
|
||||
this.logo,
|
||||
this.win,
|
||||
this.loss
|
||||
);
|
||||
|
||||
}
|
||||
@@ -1,40 +1,171 @@
|
||||
import 'package:capstone_hungry_hippos/models/School.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class Standing extends StatelessWidget{
|
||||
class Standing extends StatelessWidget {
|
||||
final _schools = [
|
||||
School("North Texas Mean Green",AssetImage('assets/school_logos/NorthTexas.png'), 14, 4),
|
||||
School("Louisiana Tech Bulldogs",AssetImage('assets/school_logos/LT.png'), 13, 5),
|
||||
School("Western Kentucky Hilltoppers",AssetImage('assets/school_logos/wku.png'), 13, 5),
|
||||
School("Charlotte 49ers",AssetImage('assets/school_logos/uncc.png'), 10, 8),
|
||||
School("Marshall Thundering Herd",AssetImage('assets/school_logos/Marshall.png'), 10, 8),
|
||||
School("Florida Int'L Panthers",AssetImage('assets/school_logos/FIU.png'), 9, 9),
|
||||
School("UAB Blazers",AssetImage('assets/school_logos/UAB.png'), 9, 9),
|
||||
School("Old Dominion Monarchs",AssetImage('assets/school_logos/ODU.png'), 9, 9),
|
||||
School("Florida Atlantic Owl",AssetImage('assets/school_logos/FAU.png'), 8, 10),
|
||||
School("UTEP Miners",AssetImage('assets/school_logos/UTEP.png'), 8, 10),
|
||||
School("UTSA Roadrunners",AssetImage('assets/school_logos/UTSA.png'), 7, 11),
|
||||
School("Rice Owls",AssetImage('assets/school_logos/RiceOwls.png'), 7, 11),
|
||||
School("Southern Miss Golden Eagles",AssetImage('assets/school_logos/SouthernMiss.png'), 5, 13),
|
||||
School("Middle Tennessee Blue Raiders",AssetImage('assets/school_logos/MT.png'), 4, 14),
|
||||
];
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return StatefulBuilder(
|
||||
builder: (context, StateSetter setState) => Scaffold(
|
||||
appBar: AppBar(
|
||||
centerTitle: false,
|
||||
title: Text("49ers"),
|
||||
backgroundColor: Colors.green,
|
||||
),
|
||||
body: Text("Standings Goes Here"),
|
||||
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, '/'),
|
||||
),
|
||||
),
|
||||
],
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
centerTitle: false,
|
||||
title: Text("49ers"),
|
||||
backgroundColor: Colors.green,
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Container(
|
||||
child: Text(
|
||||
"W L",
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
)
|
||||
));
|
||||
alignment: Alignment(.85, 0),
|
||||
height: 20,
|
||||
color: Colors.grey,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[0],
|
||||
position: 1,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[1],
|
||||
position: 2,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[2],
|
||||
position: 3,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[3],
|
||||
position: 4,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[4],
|
||||
position: 5,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[5],
|
||||
position: 6,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[6],
|
||||
position: 7,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[7],
|
||||
position: 8,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[8],
|
||||
position: 9,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[9],
|
||||
position: 10,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[10],
|
||||
position: 11,
|
||||
),
|
||||
SportLine(
|
||||
s: _schools[11],
|
||||
position: 12,
|
||||
),SportLine(
|
||||
s: _schools[12],
|
||||
position: 13,
|
||||
),SportLine(
|
||||
s: _schools[13],
|
||||
position: 14,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class SportLine extends StatelessWidget {
|
||||
const SportLine({
|
||||
Key key,
|
||||
@required
|
||||
this.position,
|
||||
this.s
|
||||
}) : super(key: key);
|
||||
|
||||
final School s;
|
||||
final int position;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
int w = s.win;
|
||||
int l = s.loss;
|
||||
return Container(
|
||||
color: evenOdd(position),
|
||||
height: 60,
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Container(
|
||||
height: 55,
|
||||
width: 20,
|
||||
//color: Colors.orange,
|
||||
child: Center(
|
||||
child: Text(
|
||||
"$position",
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
)),
|
||||
),
|
||||
Container(
|
||||
//color: Colors.blue,
|
||||
width: 55,
|
||||
child: Image(
|
||||
image: s.logo,
|
||||
),
|
||||
),
|
||||
Container(
|
||||
width: 5,
|
||||
//color: Colors.red,
|
||||
),
|
||||
Container(
|
||||
//color: Colors.pinkAccent,
|
||||
width: 255,
|
||||
child: Text(s.name),
|
||||
),
|
||||
Container(
|
||||
//color: Colors.orange,
|
||||
width: 35,
|
||||
child: Text(
|
||||
"$w",
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
)),
|
||||
Container(
|
||||
//color: Colors.blue,
|
||||
width: 35,
|
||||
child: Text(
|
||||
" $l",
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
))
|
||||
],
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Color evenOdd(int i) {
|
||||
Color c = i % 2 == 0 ? Colors.black12 : Colors.white30;
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
17
pubspec.yaml
@@ -46,10 +46,21 @@ flutter:
|
||||
uses-material-design: true
|
||||
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
# assets:
|
||||
# - images/a_dot_burr.jpeg
|
||||
# - images/a_dot_ham.jpeg
|
||||
assets:
|
||||
- assets/school_logos/FIU.png
|
||||
- assets/school_logos/FAU.png
|
||||
- assets/school_logos/LT.png
|
||||
- assets/school_logos/Marshall.png
|
||||
- assets/school_logos/MT.png
|
||||
- assets/school_logos/NorthTexas.png
|
||||
- assets/school_logos/ODU.png
|
||||
- assets/school_logos/RiceOwls.png
|
||||
- assets/school_logos/SouthernMiss.png
|
||||
- assets/school_logos/UAB.png
|
||||
- assets/school_logos/uncc.png
|
||||
- assets/school_logos/UTEP.png
|
||||
- assets/school_logos/UTSA.png
|
||||
- assets/school_logos/wku.png
|
||||
- images/male.png
|
||||
- images/female.png
|
||||
|
||||
|
||||