[dev, bots, examples] rename local functions with _s (#102703)
This commit is contained in:
@@ -40,7 +40,7 @@ class _ReorderableExampleState extends State<ReorderableExample> {
|
||||
final Color evenItemColor = colorScheme.secondary.withOpacity(0.15);
|
||||
final Color draggableItemColor = colorScheme.secondary;
|
||||
|
||||
Widget _proxyDecorator(Widget child, int index, Animation<double> animation) {
|
||||
Widget proxyDecorator(Widget child, int index, Animation<double> animation) {
|
||||
return AnimatedBuilder(
|
||||
animation: animation,
|
||||
builder: (BuildContext context, Widget? child) {
|
||||
@@ -59,7 +59,7 @@ class _ReorderableExampleState extends State<ReorderableExample> {
|
||||
|
||||
return ReorderableListView(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 40),
|
||||
proxyDecorator: _proxyDecorator,
|
||||
proxyDecorator: proxyDecorator,
|
||||
children: <Widget>[
|
||||
for (int index = 0; index < _items.length; index += 1)
|
||||
ListTile(
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter_api_samples/cupertino/slider/cupertino_slider.0.dart' as
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
Future<void> _dragSlider(WidgetTester tester, Key sliderKey) {
|
||||
Future<void> dragSlider(WidgetTester tester, Key sliderKey) {
|
||||
final Offset topLeft = tester.getTopLeft(find.byKey(sliderKey));
|
||||
const double unit = CupertinoThumbPainter.radius;
|
||||
const double delta = 3.0 * unit;
|
||||
@@ -22,7 +22,7 @@ void main() {
|
||||
// Check for the initial slider value.
|
||||
expect(find.text('0.0'), findsOneWidget);
|
||||
|
||||
await _dragSlider(tester, const Key('slider'));
|
||||
await dragSlider(tester, const Key('slider'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Check for the updated slider value.
|
||||
|
||||
Reference in New Issue
Block a user