Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. import 'cities.dart';
  4. class College extends StatelessWidget {
  5. final String collegename;
  6. final String collegetext;
  7. final String citytext;
  8. final String collegelogo;
  9. final Widget citywidget;
  10. final Color color1;
  11. College({this.collegename, this.collegetext, this.citytext, this.collegelogo,this.citywidget, this.color1});
  12. @override
  13. Widget build(BuildContext context) {
  14. return MaterialApp(
  15. home: Scaffold(
  16. appBar: AppBar(
  17. title: Text (collegename),
  18. ),
  19. body: Column(
  20. mainAxisAlignment: MainAxisAlignment.start,
  21. children: <Widget>[
  22. FlatButton(color: Colors.lightBlue,
  23. onPressed: () => Navigator.pop(context),
  24. child: Text('Go back')),
  25. Image.asset(collegelogo),
  26. Text (collegetext),
  27. Container(padding: EdgeInsets.all(.5), decoration: BoxDecoration(color: Colors.red), width: 80, height: 30,
  28. child: FlatButton(child: Text(citytext),
  29. onPressed: () => Navigator.push(context,
  30. MaterialPageRoute(builder: (BuildContext context) => citywidget)),),
  31. )
  32. ],
  33. ),
  34. ),
  35. );
  36. }
  37. }
  38. //Sahriar Islam
  39. class Wsu extends College{
  40. Wsu():super(
  41. collegename:'Wichita State University',
  42. collegetext:'Tuition costs around 12000 a year for its '
  43. 'computer science, it is located in Wichita, Kansas',
  44. citytext:'City of Wichita',
  45. collegelogo:'lib/assets/wsu.png',
  46. citywidget:Wichita(),
  47. color1:Colors.orange,
  48. );
  49. }
  50. class Ou extends College{
  51. Ou():super(
  52. collegename:'Oklahoma State University',
  53. collegetext:'Tuition costs around 12000 a year for its '
  54. 'computer science, it is located in Wichita, Kansas',
  55. citytext:'City of Wichita',
  56. collegelogo:'lib/assets/ou.png',
  57. citywidget:Norman(),
  58. color1:Colors.orange,
  59. );
  60. }
  61. class Osu extends College{
  62. Osu():super(
  63. collegename:'Oklahoma State University',
  64. collegetext:'Tuition costs around 15000 a year for its '
  65. 'computer science, it is located in Norman, Oklahoma',
  66. citytext:'City of Wichita',
  67. collegelogo:'lib/assets/osu.png',
  68. citywidget:Stillwater(),
  69. color1:Colors.orange,
  70. );
  71. }
  72. //Sahriar Islam
  73. class Ku extends College{
  74. Ku():super(
  75. collegename:'University of Kansas',
  76. collegetext:'Tuition costs around 15000 a year for its '
  77. 'computer science, it is located in Stillwater, Oklahoma',
  78. citytext:'City of Wichita',
  79. collegelogo:'lib/assets/ku.jpeg',
  80. citywidget:Lawrence(),
  81. color1:Colors.orange,
  82. );
  83. }
  84.  
  85. class Mit extends College{
  86. Mit():super(
  87. collegename:'Massachusetts Institute of Technology',
  88. collegetext:'Tuition costs around 15600 a year for its '
  89. 'computer science, it is located in Lawrense, Kansas',
  90. citytext:'City of Wichita',
  91. collegelogo:'lib/assets/mit.png',
  92. citywidget:Cambridge(),
  93. color1:Colors.orange,
  94. );
  95. }
  96. class Cuny extends College{
  97. Cuny():super(
  98. collegename:'City University of New York',
  99. collegetext:'Tuition costs around 55000 a year for its '
  100. 'computer science, it is located in Cambridge, Massachusetts',
  101. citytext:'City of Wichita',
  102. collegelogo:'lib/assets/cuny.png',
  103. citywidget:brooklyn(),
  104. color1:Colors.orange,
  105. );
  106. }
  107. class Nyu extends College{
  108. Nyu():super(
  109. collegename:'New York University',
  110. collegetext:'Tuition costs around 12000 a year for its'
  111. ' computer science, it is located in New York City, New York',
  112. citytext:'City of Wichita',
  113. collegelogo:'lib/assets/nyu.png',
  114. citywidget:brooklyn(),
  115. color1:Colors.orange,
  116. );
  117. }
  118. //Sahriar Islam
  119. class Opsu extends College{
  120. Opsu():super(
  121. collegename:'Oklahoma Panhandle State University',
  122. collegetext:'Tuition costs around 14000 a year for its'
  123. ' computer science, it is located in Goodwell, Oklahoma',
  124. citytext:'City of Wichita',
  125. collegelogo:'lib/assets/opsu.png',
  126. citywidget:Goodwell(),
  127. color1:Colors.orange,
  128. );
  129. }
  130. class Rice extends College{
  131. Rice():super(
  132. collegename:'Rice University',
  133. collegetext:'Tuition costs around 19000 a year for its '
  134. 'computer science, it is located in Houston, Texas',
  135. citytext:'City of Wichita',
  136. collegelogo:'lib/assets/rice.png',
  137. citywidget:Houston(),
  138. color1:Colors.orange,
  139. );
  140. }
  141. //Sahriar Islam
  142. class Brown extends College{
  143. Brown():super(
  144. collegename:'Brown University',
  145. collegetext:'Tuition costs around 29000 a year for its '
  146. 'computer science, it is located in Providence, Rhode Island',
  147. citytext:'City of Wichita',
  148. collegelogo:'lib/assets/brown.jpeg',
  149. citywidget:Providence(),
  150. color1:Colors.orange,
  151. );
  152. }
  153. class Isu extends College{
  154. Isu():super(
  155. collegename:'Iowa State University',
  156. collegetext:'Tuition costs around 14000 a year for its'
  157. ' computer science, it is located in Ames, Iowa',
  158. citytext:'City of Wichita',
  159. collegelogo:'lib/assets/isu.png',
  160. citywidget:Ames(),
  161. color1:Colors.orange,
  162. );
  163. }
  164. class Duke extends College{
  165. Duke():super(
  166. collegename:'The University of Duke',
  167. collegetext:'Tuition costs around 34000 a year for its'
  168. ' computer science, it is located in Durham, North Carolina',
  169. citytext:'City of Wichita',
  170. collegelogo:'lib/assets/duke.png',
  171. citywidget:Durham(),
  172. color1:Colors.orange,
  173. );
  174. }
  175. class Utulsa extends College{
  176. Utulsa():super(
  177. collegename:'The University of Tulsa',
  178. collegetext:'Tuition costs around 23000 a year for its'
  179. ' computer science, it is located in Tulsa, Oklahoma',
  180. citytext:'City of Wichita',
  181. collegelogo:'lib/assets/utulsa.jpeg',
  182. citywidget:Tulsa(),
  183. color1:Colors.orange,
  184. );
  185. }
  186. //Sahriar Islam
  187. class Bc extends College{
  188. Bc():super(
  189. collegename:'The University of British Columbia',
  190. collegetext:'Tuition costs around 34000 a year for '
  191. 'its computer science, it is located in vancouver, British Columbia',
  192. citytext:'City of Wichita',
  193. collegelogo:'lib/assets/bc.png',
  194. citywidget:Vancouver(),
  195. color1:Colors.orange,
  196. );
  197. }
  198. class Suny extends College{
  199. Suny():super(
  200. collegename:'State University of New York System',
  201. collegetext:'Tuition costs around 14000 a year for its '
  202. 'computer science, it is located in New York',
  203. citytext:'City of Wichita',
  204. collegelogo:'lib/assets/suny.png',
  205. citywidget:Albany(),
  206. color1:Colors.orange,
  207. );
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement