Normalize examples (#111223)
This commit is contained in:
@@ -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 CircularProgressIndicator
|
||||
/// Flutter code sample for [CircularProgressIndicator].
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -29,7 +29,8 @@ class MyStatefulWidget extends StatefulWidget {
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
}
|
||||
|
||||
/// AnimationControllers can be created with `vsync: this` because of TickerProviderStateMixin.
|
||||
/// [AnimationController]s can be created with `vsync: this` because of
|
||||
/// [TickerProviderStateMixin].
|
||||
class _MyStatefulWidgetState extends State<MyStatefulWidget>
|
||||
with TickerProviderStateMixin {
|
||||
late AnimationController controller;
|
||||
|
||||
@@ -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 LinearProgressIndicator
|
||||
/// Flutter code sample for [LinearProgressIndicator].
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -29,7 +29,8 @@ class MyStatefulWidget extends StatefulWidget {
|
||||
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
|
||||
}
|
||||
|
||||
/// AnimationControllers can be created with `vsync: this` because of TickerProviderStateMixin.
|
||||
/// [AnimationController]s can be created with `vsync: this` because of
|
||||
/// [TickerProviderStateMixin].
|
||||
class _MyStatefulWidgetState extends State<MyStatefulWidget>
|
||||
with TickerProviderStateMixin {
|
||||
late AnimationController controller;
|
||||
|
||||
Reference in New Issue
Block a user