Rename Sample classes (#124080)

Rename Sample classes
This commit is contained in:
Greg Spencer
2023-04-04 13:34:29 -07:00
committed by GitHub
parent c8a3dbaf06
commit e3bc8efd39
480 changed files with 3125 additions and 3816 deletions

View File

@@ -2,10 +2,10 @@
// 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].
import 'package:flutter/material.dart';
/// Flutter code sample for [CircularProgressIndicator].
void main() => runApp(const ProgressIndicatorApp());
class ProgressIndicatorApp extends StatelessWidget {
@@ -26,8 +26,7 @@ class ProgressIndicatorExample extends StatefulWidget {
State<ProgressIndicatorExample> createState() => _ProgressIndicatorExampleState();
}
class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample>
with TickerProviderStateMixin {
class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample> with TickerProviderStateMixin {
late AnimationController controller;
@override

View File

@@ -2,10 +2,10 @@
// 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].
import 'package:flutter/material.dart';
/// Flutter code sample for [CircularProgressIndicator].
void main() => runApp(const ProgressIndicatorApp());
class ProgressIndicatorApp extends StatelessWidget {
@@ -27,8 +27,7 @@ class ProgressIndicatorExample extends StatefulWidget {
State<ProgressIndicatorExample> createState() => _ProgressIndicatorExampleState();
}
class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample>
with TickerProviderStateMixin {
class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample> with TickerProviderStateMixin {
late AnimationController controller;
bool determinate = false;
@@ -86,7 +85,9 @@ class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample>
if (determinate) {
controller.stop();
} else {
controller..forward(from: controller.value)..repeat();
controller
..forward(from: controller.value)
..repeat();
}
});
},

View File

@@ -2,10 +2,10 @@
// 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].
import 'package:flutter/material.dart';
/// Flutter code sample for [LinearProgressIndicator].
void main() => runApp(const ProgressIndicatorApp());
class ProgressIndicatorApp extends StatelessWidget {
@@ -26,8 +26,7 @@ class ProgressIndicatorExample extends StatefulWidget {
State<ProgressIndicatorExample> createState() => _ProgressIndicatorExampleState();
}
class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample>
with TickerProviderStateMixin {
class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample> with TickerProviderStateMixin {
late AnimationController controller;
@override

View File

@@ -2,10 +2,10 @@
// 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].
import 'package:flutter/material.dart';
/// Flutter code sample for [LinearProgressIndicator].
void main() => runApp(const ProgressIndicatorApp());
class ProgressIndicatorApp extends StatelessWidget {
@@ -27,8 +27,7 @@ class ProgressIndicatorExample extends StatefulWidget {
State<ProgressIndicatorExample> createState() => _ProgressIndicatorExampleState();
}
class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample>
with TickerProviderStateMixin {
class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample> with TickerProviderStateMixin {
late AnimationController controller;
bool determinate = false;
@@ -86,7 +85,9 @@ class _ProgressIndicatorExampleState extends State<ProgressIndicatorExample>
if (determinate) {
controller.stop();
} else {
controller..forward(from: controller.value)..repeat();
controller
..forward(from: controller.value)
..repeat();
}
});
},