From d55048cdf86df4ca2e90ba4022c0e7f3365d7969 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Fri, 6 Aug 2021 18:11:43 -0700 Subject: [PATCH] Fix sample analyzer errors in text.dart (flutter/engine#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. --- engine/src/flutter/lib/ui/text.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/lib/ui/text.dart b/engine/src/flutter/lib/ui/text.dart index 097e709802a..b10ad0164cd 100644 --- a/engine/src/flutter/lib/ui/text.dart +++ b/engine/src/flutter/lib/ui/text.dart @@ -150,7 +150,7 @@ class FontWeight { /// style: TextStyle( /// fontFamily: 'Cardo', /// fontSize: 24, -/// fontFeatures: const [FontFeature.oldstyleFigures()])), +/// fontFeatures: [FontFeature.oldstyleFigures()])), /// const Spacer(), /// const Divider(), /// const Spacer(), @@ -761,7 +761,7 @@ class FontFeature { /// // The Noto family of fonts can be downloaded from Google Fonts (https://www.google.com/fonts). /// return const Text( /// '次 化 刃 直 入 令', - /// locale: const Locale('zh', 'CN'), // or Locale('ja'), Locale('ko'), Locale('zh', 'TW'), etc + /// locale: Locale('zh', 'CN'), // or Locale('ja'), Locale('ko'), Locale('zh', 'TW'), etc /// style: TextStyle( /// fontFamily: 'Noto Sans', /// ),