Skip to content

Instantly share code, notes, and snippets.

@ybakos
Created January 23, 2020 19:51
Show Gist options
  • Save ybakos/dfc65664f09b38f36ceedb78c9242ea5 to your computer and use it in GitHub Desktop.
Save ybakos/dfc65664f09b38f36ceedb78c9242ea5 to your computer and use it in GitHub Desktop.
CS 492 Week 5 Exploration 3 Exercise
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: MyWidget()
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(child: Text('Image here')); // FIXME: Use an Image named constructor.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment