From 10e4f52080bf7a356670640c4045568e9c992ec2 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 15 Sep 2016 21:59:40 -0700 Subject: [PATCH] Explain that `runApp` forces the app to fill the screen (#5904) Fixes #5872 --- packages/flutter/lib/src/widgets/binding.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/flutter/lib/src/widgets/binding.dart b/packages/flutter/lib/src/widgets/binding.dart index aad5743dd5..d732b7bad1 100644 --- a/packages/flutter/lib/src/widgets/binding.dart +++ b/packages/flutter/lib/src/widgets/binding.dart @@ -347,6 +347,11 @@ abstract class WidgetsBinding extends BindingBase implements GestureBinding, Ren /// Inflate the given widget and attach it to the screen. /// +/// The widget is given constraints during layout that force it to fill the +/// entire screen. If you wish to align your widget to one side of the screen +/// (e.g., the top), consider using the [Align] widget. If you wish to center +/// your widget, you can also use the [Center] widget +/// /// Initializes the binding using [WidgetsFlutterBinding] if necessary. /// /// See also: