Skip to content

Commit 613490f

Browse files
authored
Fix sample analyzer errors in text.dart (flutter#27941)
This just fixes a couple of minor analyzer errors in the sample code so that they won't break the build when I fix the analyzer in the flutter repo.
1 parent 532a5ca commit 613490f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ui/text.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class FontWeight {
150150
/// style: TextStyle(
151151
/// fontFamily: 'Cardo',
152152
/// fontSize: 24,
153-
/// fontFeatures: const <FontFeature>[FontFeature.oldstyleFigures()])),
153+
/// fontFeatures: <FontFeature>[FontFeature.oldstyleFigures()])),
154154
/// const Spacer(),
155155
/// const Divider(),
156156
/// const Spacer(),
@@ -761,7 +761,7 @@ class FontFeature {
761761
/// // The Noto family of fonts can be downloaded from Google Fonts (https://www.google.com/fonts).
762762
/// return const Text(
763763
/// '次 化 刃 直 入 令',
764-
/// locale: const Locale('zh', 'CN'), // or Locale('ja'), Locale('ko'), Locale('zh', 'TW'), etc
764+
/// locale: Locale('zh', 'CN'), // or Locale('ja'), Locale('ko'), Locale('zh', 'TW'), etc
765765
/// style: TextStyle(
766766
/// fontFamily: 'Noto Sans',
767767
/// ),

0 commit comments

Comments
 (0)