Normalize examples (#111223)

This commit is contained in:
Greg Spencer
2022-09-09 14:17:11 -07:00
committed by GitHub
parent d63442c1da
commit e617d003fb
370 changed files with 991 additions and 924 deletions

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature
/// Flutter code sample for [FontFeature].
import 'dart:ui';
import 'package:flutter/material.dart';
@@ -31,8 +31,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Cardo, Milonga and Raleway Dots fonts can be downloaded from
// Google Fonts (https://www.google.com/fonts).
// The Cardo, Milonga and Raleway Dots fonts can be downloaded from Google
// Fonts (https://www.google.com/fonts).
return Scaffold(
body: Center(
child: Column(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.alternative
/// Flutter code sample for [FontFeature.FontFeature.alternative].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Raleway font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Raleway font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'The infamous Tuna Torture.',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.alternativeFractions
/// Flutter code sample for [FontFeature.FontFeature.alternativeFractions].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Ubuntu Mono font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Ubuntu Mono font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Fractions: 1/2 2/3 3/4 4/5',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.caseSensitiveForms
/// Flutter code sample for [FontFeature.FontFeature.caseSensitiveForms].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'(A) [A] {A} «A» A/B A•B',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.characterVariant
/// Flutter code sample for [FontFeature.FontFeature.characterVariant].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Source Code Pro font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Source Code Pro font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return Text(
'aáâ β gǵĝ θб Iiíî Ll',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.contextualAlternates
/// Flutter code sample for [FontFeature.FontFeature.contextualAlternates].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Barriecito font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Barriecito font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
"Ooohh, we weren't going to tell him that.",
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.denominator
/// Flutter code sample for [FontFeature.FontFeature.denominator].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Fractions: 1/2 2/3 3/4 4/5',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.fractions
/// Flutter code sample for [FontFeature.FontFeature.fractions].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Ubuntu Mono font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Ubuntu Mono font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Fractions: 1/2 2/3 3/4 4/5',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.historicalForms
/// Flutter code sample for [FontFeature.FontFeature.historicalForms].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Cardo font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Cardo font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'VIBRANT fish assisted his business.',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.historicalLigatures
/// Flutter code sample for [FontFeature.FontFeature.historicalLigatures].
import 'dart:ui';
@@ -27,7 +27,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Cardo font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Cardo font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'VIBRANT fish assisted his business.',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.liningFigures
/// Flutter code sample for [FontFeature.FontFeature.liningFigures].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Sorts Mill Goudy font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Sorts Mill Goudy font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'CALL 311-555-2368 NOW!',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.localeAware
/// Flutter code sample for [FontFeature.FontFeature.localeAware].
import 'package:flutter/widgets.dart';
@@ -25,7 +25,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Noto family of fonts can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Noto family of fonts can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'次 化 刃 直 入 令',
locale: Locale('zh', 'CN'), // or Locale('ja'), Locale('ko'), Locale('zh', 'TW'), etc

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.notationalForms
/// Flutter code sample for [FontFeature.FontFeature.notationalForms].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Gothic A1 font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Gothic A1 font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'abc 123',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.numerators
/// Flutter code sample for [FontFeature.FontFeature.numerators].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -27,7 +27,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Fractions: 1/2 2/3 3/4 4/5',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.oldstyleFigures
/// Flutter code sample for [FontFeature.FontFeature.oldstyleFigures].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Call 311-555-2368 now!',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.ordinalForms
/// Flutter code sample for [FontFeature.FontFeature.ordinalForms].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'1st, 2nd, 3rd, 4th...',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.proportionalFigures
/// Flutter code sample for [FontFeature.FontFeature.proportionalFigures].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Kufam font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Kufam font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Call 311-555-2368 now!',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.scientificInferiors
/// Flutter code sample for [FontFeature.FontFeature.scientificInferiors].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'C8H10N4O2',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.slashedZero
/// Flutter code sample for [FontFeature.FontFeature.slashedZero].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Source Code Pro font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Source Code Pro font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'One million is: 1,000,000.00',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.stylisticAlternates
/// Flutter code sample for [FontFeature.FontFeature.stylisticAlternates].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Source Code Pro font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Source Code Pro font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
r'Agile Game - $100 initial bet',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.stylisticSet
/// Flutter code sample for [FontFeature.FontFeature.stylisticSet].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Source Code Pro font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Source Code Pro font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return Text(
'aáâ β gǵĝ θб Iiíî Ll',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.stylisticSet
/// Flutter code sample for [FontFeature.FontFeature.stylisticSet].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return Text(
'-> MCMXCVII <-', // 1997
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.subscripts
/// Flutter code sample for [FontFeature.FontFeature.subscripts].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Line from x1,y1 to x2,y2',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.superscripts
/// Flutter code sample for [FontFeature.FontFeature.superscripts].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Sorts Mill Goudy font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Sorts Mill Goudy font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'The isotope 238U decays to 206Pb',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FontFeature.FontFeature.swash
/// Flutter code sample for [FontFeature.FontFeature.swash].
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The BioRhyme Expanded font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The BioRhyme Expanded font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Queer & Romantic',
style: TextStyle(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for dart:ui FontFeature.FontFeature.tabularFigures
/// Flutter code sample for [dart]:ui FontFeature.FontFeature.tabularFigures.
import 'dart:ui';
import 'package:flutter/widgets.dart';
@@ -26,7 +26,8 @@ class ExampleWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// The Piazzolla font can be downloaded from Google Fonts (https://www.google.com/fonts).
// The Piazzolla font can be downloaded from Google Fonts
// (https://www.google.com/fonts).
return const Text(
'Call 311-555-2368 now!',
style: TextStyle(