Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'cities.dart';
- class College extends StatelessWidget {
- final String collegename;
- final String collegetext;
- final String citytext;
- final String collegelogo;
- final Widget citywidget;
- final Color color1;
- College({this.collegename, this.collegetext, this.citytext, this.collegelogo,this.citywidget, this.color1});
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- home: Scaffold(
- appBar: AppBar(
- title: Text (collegename),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- children: <Widget>[
- FlatButton(color: Colors.lightBlue,
- onPressed: () => Navigator.pop(context),
- child: Text('Go back')),
- Image.asset(collegelogo),
- Text (collegetext),
- Container(padding: EdgeInsets.all(.5), decoration: BoxDecoration(color: Colors.red), width: 80, height: 30,
- child: FlatButton(child: Text(citytext),
- onPressed: () => Navigator.push(context,
- MaterialPageRoute(builder: (BuildContext context) => citywidget)),),
- )
- ],
- ),
- ),
- );
- }
- }
- //Sahriar Islam
- class Wsu extends College{
- Wsu():super(
- collegename:'Wichita State University',
- collegetext:'Tuition costs around 12000 a year for its '
- 'computer science, it is located in Wichita, Kansas',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/wsu.png',
- citywidget:Wichita(),
- color1:Colors.orange,
- );
- }
- class Ou extends College{
- Ou():super(
- collegename:'Oklahoma State University',
- collegetext:'Tuition costs around 12000 a year for its '
- 'computer science, it is located in Wichita, Kansas',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/ou.png',
- citywidget:Norman(),
- color1:Colors.orange,
- );
- }
- class Osu extends College{
- Osu():super(
- collegename:'Oklahoma State University',
- collegetext:'Tuition costs around 15000 a year for its '
- 'computer science, it is located in Norman, Oklahoma',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/osu.png',
- citywidget:Stillwater(),
- color1:Colors.orange,
- );
- }
- //Sahriar Islam
- class Ku extends College{
- Ku():super(
- collegename:'University of Kansas',
- collegetext:'Tuition costs around 15000 a year for its '
- 'computer science, it is located in Stillwater, Oklahoma',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/ku.jpeg',
- citywidget:Lawrence(),
- color1:Colors.orange,
- );
- }
- class Mit extends College{
- Mit():super(
- collegename:'Massachusetts Institute of Technology',
- collegetext:'Tuition costs around 15600 a year for its '
- 'computer science, it is located in Lawrense, Kansas',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/mit.png',
- citywidget:Cambridge(),
- color1:Colors.orange,
- );
- }
- class Cuny extends College{
- Cuny():super(
- collegename:'City University of New York',
- collegetext:'Tuition costs around 55000 a year for its '
- 'computer science, it is located in Cambridge, Massachusetts',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/cuny.png',
- citywidget:brooklyn(),
- color1:Colors.orange,
- );
- }
- class Nyu extends College{
- Nyu():super(
- collegename:'New York University',
- collegetext:'Tuition costs around 12000 a year for its'
- ' computer science, it is located in New York City, New York',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/nyu.png',
- citywidget:brooklyn(),
- color1:Colors.orange,
- );
- }
- //Sahriar Islam
- class Opsu extends College{
- Opsu():super(
- collegename:'Oklahoma Panhandle State University',
- collegetext:'Tuition costs around 14000 a year for its'
- ' computer science, it is located in Goodwell, Oklahoma',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/opsu.png',
- citywidget:Goodwell(),
- color1:Colors.orange,
- );
- }
- class Rice extends College{
- Rice():super(
- collegename:'Rice University',
- collegetext:'Tuition costs around 19000 a year for its '
- 'computer science, it is located in Houston, Texas',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/rice.png',
- citywidget:Houston(),
- color1:Colors.orange,
- );
- }
- //Sahriar Islam
- class Brown extends College{
- Brown():super(
- collegename:'Brown University',
- collegetext:'Tuition costs around 29000 a year for its '
- 'computer science, it is located in Providence, Rhode Island',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/brown.jpeg',
- citywidget:Providence(),
- color1:Colors.orange,
- );
- }
- class Isu extends College{
- Isu():super(
- collegename:'Iowa State University',
- collegetext:'Tuition costs around 14000 a year for its'
- ' computer science, it is located in Ames, Iowa',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/isu.png',
- citywidget:Ames(),
- color1:Colors.orange,
- );
- }
- class Duke extends College{
- Duke():super(
- collegename:'The University of Duke',
- collegetext:'Tuition costs around 34000 a year for its'
- ' computer science, it is located in Durham, North Carolina',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/duke.png',
- citywidget:Durham(),
- color1:Colors.orange,
- );
- }
- class Utulsa extends College{
- Utulsa():super(
- collegename:'The University of Tulsa',
- collegetext:'Tuition costs around 23000 a year for its'
- ' computer science, it is located in Tulsa, Oklahoma',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/utulsa.jpeg',
- citywidget:Tulsa(),
- color1:Colors.orange,
- );
- }
- //Sahriar Islam
- class Bc extends College{
- Bc():super(
- collegename:'The University of British Columbia',
- collegetext:'Tuition costs around 34000 a year for '
- 'its computer science, it is located in vancouver, British Columbia',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/bc.png',
- citywidget:Vancouver(),
- color1:Colors.orange,
- );
- }
- class Suny extends College{
- Suny():super(
- collegename:'State University of New York System',
- collegetext:'Tuition costs around 14000 a year for its '
- 'computer science, it is located in New York',
- citytext:'City of Wichita',
- collegelogo:'lib/assets/suny.png',
- citywidget:Albany(),
- color1:Colors.orange,
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement