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.
This commit is contained in:
Greg Spencer 2021-08-06 18:11:43 -07:00 committed by GitHub
parent 36a4de766a
commit d55048cdf8

View File

@ -150,7 +150,7 @@ class FontWeight {
/// style: TextStyle(
/// fontFamily: 'Cardo',
/// fontSize: 24,
/// fontFeatures: const <FontFeature>[FontFeature.oldstyleFigures()])),
/// fontFeatures: <FontFeature>[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',
/// ),