From f44319f1f094aba3702b6e9802fe9abf41c343ab Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Fri, 6 Aug 2021 17:33:54 -0700 Subject: [PATCH] Fix sample analyzer errors in text.dart --- lib/ui/text.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/text.dart b/lib/ui/text.dart index 097e709802a1c..b10ad0164cda1 100644 --- a/lib/ui/text.dart +++ b/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', /// ),