Revert "Enable avoid_redundant_argument_values lint (#91409)" (#91461)

This reverts commit 5fd259be24.
This commit is contained in:
Zachary Anderson
2021-10-07 21:11:07 -07:00
committed by GitHub
parent 5fd259be24
commit b9d2177da0
667 changed files with 3385 additions and 1693 deletions

View File

@@ -122,39 +122,42 @@ class _SimpleUSPhoneNumberEntryState extends State<SimpleUSPhoneNumberEntry> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
const Expanded(
child: Text('(', textAlign: TextAlign.center),
),
child: Text(
'(',
textAlign: TextAlign.center,
),
flex: 1),
Expanded(
flex: 3,
child: DigitInput(
focusNode: areaCodeFocusNode,
controller: areaCodeController,
maxLength: 3,
),
),
child: DigitInput(
focusNode: areaCodeFocusNode,
controller: areaCodeController,
maxLength: 3),
flex: 3),
const Expanded(
child: Text(')', textAlign: TextAlign.center),
),
child: Text(
')',
textAlign: TextAlign.center,
),
flex: 1),
Expanded(
flex: 3,
child: DigitInput(
focusNode: prefixFocusNode,
controller: prefixController,
maxLength: 3,
),
),
child: DigitInput(
focusNode: prefixFocusNode,
controller: prefixController,
maxLength: 3),
flex: 3),
const Expanded(
child: Text('-', textAlign: TextAlign.center),
),
child: Text(
'-',
textAlign: TextAlign.center,
),
flex: 1),
Expanded(
flex: 4,
child: DigitInput(
focusNode: lineNumberFocusNode,
controller: lineNumberController,
textInputAction: TextInputAction.done,
maxLength: 4,
),
),
child: DigitInput(
focusNode: lineNumberFocusNode,
controller: lineNumberController,
textInputAction: TextInputAction.done,
maxLength: 4),
flex: 4),
],
),
);

View File

@@ -53,6 +53,7 @@ class _ActionListenerExampleState extends State<ActionListenerExample> {
@override
Widget build(BuildContext context) {
return Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Padding(

View File

@@ -62,6 +62,7 @@ class _AnimatedListSampleState extends State<AnimatedListSample> {
return CardItem(
animation: animation,
item: item,
selected: false,
// No gesture detector here: we don't want removed items to be interactive.
);
}
@@ -195,6 +196,7 @@ class CardItem extends StatelessWidget {
return Padding(
padding: const EdgeInsets.all(2.0),
child: SizeTransition(
axis: Axis.vertical,
sizeFactor: animation,
child: GestureDetector(
behavior: HitTestBehavior.opaque,

View File

@@ -65,6 +65,7 @@ class _SliverAnimatedListSampleState extends State<SliverAnimatedListSample> {
return CardItem(
animation: animation,
item: item,
selected: false,
);
}
@@ -212,8 +213,10 @@ class CardItem extends StatelessWidget {
left: 2.0,
right: 2.0,
top: 2.0,
bottom: 0.0,
),
child: SizeTransition(
axis: Axis.vertical,
sizeFactor: animation,
child: GestureDetector(
onTap: onTap,

View File

@@ -84,6 +84,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
return Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: children,
),
);

View File

@@ -123,6 +123,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: children,
);
},

View File

@@ -56,6 +56,7 @@ class AutocompleteFormExampleState extends State<AutocompleteFormExample> {
value: _dropdownValue,
icon: const Icon(Icons.arrow_downward),
hint: const Text('This is a regular DropdownButtonFormField'),
iconSize: 24,
elevation: 16,
style: const TextStyle(color: Colors.deepPurple),
onChanged: (String? newValue) {

View File

@@ -47,6 +47,7 @@ class MyStatelessWidget extends StatelessWidget {
width: 100.0,
height: 200.0,
child: AbsorbPointer(
absorbing: true,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.blue.shade200,

View File

@@ -47,6 +47,7 @@ class MyStatelessWidget extends StatelessWidget {
width: 50,
),
Expanded(
flex: 1,
child: Container(
color: Colors.amber,
height: 100,

View File

@@ -30,10 +30,11 @@ class MyStatelessWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final PageController controller = PageController();
final PageController controller = PageController(initialPage: 0);
return PageView(
/// [PageView.scrollDirection] defaults to [Axis.horizontal].
/// Use [Axis.vertical] to scroll vertically.
scrollDirection: Axis.horizontal,
controller: controller,
children: const <Widget>[
Center(

View File

@@ -37,6 +37,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget>
color: const Color(0xFFFFFFFF),
border: Border.all(style: BorderStyle.none),
borderRadius: BorderRadius.circular(60.0),
shape: BoxShape.rectangle,
boxShadow: const <BoxShadow>[
BoxShadow(
color: Color(0x66666666),
@@ -73,6 +74,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget>
color: Colors.white,
child: Center(
child: DecoratedBoxTransition(
position: DecorationPosition.background,
decoration: decorationTween.animate(_controller),
child: Container(
width: 200,