Last active
January 24, 2020 03:31
-
-
Save ybakos/4ce49b315985690d161aad95914cfe65 to your computer and use it in GitHub Desktop.
CS 492 Week 5 Exploration 4 Exercise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue), | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
body: Center( | |
child: MyWidget(), | |
), | |
), | |
); | |
} | |
} | |
class MyWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ | |
// FIXME: Make this a big headline. | |
Text('Pixel-Perfect, Cross-Platform Apps'), | |
// FIXME: Make this a big sub-headline. | |
Text('Breaking into the Flutter SDK'), | |
// FIXME: Make this standard body text. | |
Text('Every SDK has its benefits and drawbacks .'), | |
// FIXME: Make this bold and red with a TextStyle. | |
Text('And Flutter is no different, but it sure is fun!') | |
] | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment