Fix WidgetApp.title documentation (#22011)

Closes #16031
This commit is contained in:
Michael Klimushyn 2018-09-19 15:39:02 -07:00 committed by GitHub
parent 7caa65943f
commit 36b735eeb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -235,9 +235,9 @@ class WidgetsApp extends StatefulWidget {
/// A one-line description used by the device to identify the app for the user.
///
/// On Android the titles appear above the task manager's app snapshots which are
/// displayed when the user presses the "recent apps" button. Similarly, on
/// iOS the titles appear in the App Switcher when the user double presses the
/// home button.
/// displayed when the user presses the "recent apps" button. On iOS this
/// value cannot be used. `CFBundleDisplayName` from the app's `Info.plist` is
/// referred to instead whenever present, `CFBundleName` otherwise.
///
/// To provide a localized title instead, use [onGenerateTitle].
/// {@endtemplate}

View File

@ -10,7 +10,7 @@ import 'framework.dart';
/// A widget that describes this app in the operating system.
class Title extends StatelessWidget {
/// Creates a widget that describes this app to the operating system.
/// Creates a widget that describes this app to the Android operating system.
///
/// [title] will default to the empty string if not supplied.
/// [color] must be an opaque color (i.e. color.alpha must be 255 (0xFF)).