center the hello world text so it isn’t covered up by the status bar

This commit is contained in:
Collin Jackson 2015-07-16 14:11:12 -07:00
parent c491ad7cbe
commit 3501bb6359

View File

@ -6,7 +6,7 @@ import 'package:sky/widgets/basic.dart';
class HelloWorldApp extends App {
Widget build() {
return new Text('Hello, world!');
return new Center(child: new Text('Hello, world!'));
}
}