mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
center the hello world text so it isn’t covered up by the status bar
This commit is contained in:
parent
c491ad7cbe
commit
3501bb6359
@ -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!'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user