From e7fec2bc3352e93f2e8228d7e389a017341b5114 Mon Sep 17 00:00:00 2001 From: Shi-Hao Hong Date: Fri, 13 Dec 2019 12:00:35 -0800 Subject: [PATCH] Add helpful message about how to use localizationsDelegates list (#46250) --- dev/tools/localization/gen_l10n.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/tools/localization/gen_l10n.dart b/dev/tools/localization/gen_l10n.dart index d5202e9c71..972e981b89 100644 --- a/dev/tools/localization/gen_l10n.dart +++ b/dev/tools/localization/gen_l10n.dart @@ -94,6 +94,10 @@ class @className { /// Returns a list of localizations delegates containing this delegate along with /// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, /// and GlobalWidgetsLocalizations.delegate. + /// + /// Additional delegates can be added by appending to this list in + /// MaterialApp. This list does not have to be used at all if a custom list + /// of delegates is preferred or required. static const List> localizationsDelegates = >[ delegate, GlobalMaterialLocalizations.delegate,