Enable avoid_redundant_argument_values lint (#91409)
This commit is contained in:
@@ -147,7 +147,6 @@ class _ShadowWidget extends StatelessWidget {
|
||||
),
|
||||
size: Size(width, height),
|
||||
isComplex: true,
|
||||
willChange: false,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -73,7 +73,6 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
|
||||
color: Colors.green,
|
||||
boxShadow: complex ? <BoxShadow>[
|
||||
const BoxShadow(
|
||||
color: Colors.black,
|
||||
blurRadius: 10.0,
|
||||
),
|
||||
] : null,
|
||||
|
||||
@@ -32,7 +32,6 @@ class _MultiWidgetConstructTableState extends State<MultiWidgetConstructTable>
|
||||
_controller = AnimationController(
|
||||
vsync: this,
|
||||
duration: const Duration(milliseconds: 10000),
|
||||
lowerBound: 0,
|
||||
upperBound: colorList.length + 1.0,
|
||||
)..repeat();
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ class _CustomPainter extends CustomPainter {
|
||||
|
||||
_textPainter.text = span;
|
||||
|
||||
_textPainter.layout(minWidth: 0, maxWidth: width);
|
||||
_textPainter.layout(maxWidth: width);
|
||||
_linePainter.style = PaintingStyle.fill;
|
||||
canvas.drawRect(
|
||||
Rect.fromLTWH(xPosition, yPosition - viewPadding, width, height),
|
||||
|
||||
@@ -1833,7 +1833,7 @@ void pathOps78() {
|
||||
|
||||
void pathOps79() {
|
||||
final Path path79 = Path();
|
||||
path79.addRRect(RRect.fromRectAndCorners(const Rect.fromLTRB(0, 0, 64, 56), topLeft: Radius.zero, topRight: Radius.zero, bottomLeft: const Radius.circular(10), bottomRight: Radius.zero, ));
|
||||
path79.addRRect(RRect.fromRectAndCorners(const Rect.fromLTRB(0, 0, 64, 56), bottomLeft: const Radius.circular(10), ));
|
||||
gFillType = path79.fillType;
|
||||
path80 = path79.shift(const Offset(906, 136));
|
||||
gFillType = path79.fillType;
|
||||
@@ -5828,7 +5828,7 @@ void pathOps576() {
|
||||
path576.moveTo(0, 0);
|
||||
path576.lineTo(220.60000000000002, 0);
|
||||
path576.quadraticBezierTo(235.60000000000002, 0, 237.569696969697, 7.817946907441011);
|
||||
path576.arcToPoint(const Offset(299.630303030303, 7.817946907441011), radius: const Radius.circular(32), rotation: 0, largeArc: false, clockwise: false);
|
||||
path576.arcToPoint(const Offset(299.630303030303, 7.817946907441011), radius: const Radius.circular(32), clockwise: false);
|
||||
path576.quadraticBezierTo(301.6, 0, 316.6, 0);
|
||||
path576.lineTo(312.6, 0);
|
||||
path576.lineTo(312.6, 48);
|
||||
|
||||
@@ -25,7 +25,6 @@ class BenchSimpleLazyTextScroll extends WidgetRecorder {
|
||||
child: Row(
|
||||
children: const <Widget>[
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: _TestScrollingWidget(
|
||||
initialScrollOffset: 0,
|
||||
scrollDistance: 300,
|
||||
@@ -33,7 +32,6 @@ class BenchSimpleLazyTextScroll extends WidgetRecorder {
|
||||
),
|
||||
),
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: _TestScrollingWidget(
|
||||
initialScrollOffset: 1000,
|
||||
scrollDistance: 500,
|
||||
@@ -41,7 +39,6 @@ class BenchSimpleLazyTextScroll extends WidgetRecorder {
|
||||
),
|
||||
),
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: _TestScrollingWidget(
|
||||
initialScrollOffset: 2000,
|
||||
scrollDistance: 700,
|
||||
|
||||
@@ -417,7 +417,6 @@ class ColorItem extends StatelessWidget {
|
||||
bottom: false,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
Text('$_counter:$prefix$index'),
|
||||
Text(colorString()),
|
||||
|
||||
@@ -155,7 +155,6 @@ class ProductOption extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 11, vertical: 5),
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
width: 1,
|
||||
color: const Color(0xffebebeb),
|
||||
),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(15)),
|
||||
|
||||
@@ -31,7 +31,7 @@ import 'src/web/recorder.dart';
|
||||
|
||||
typedef RecorderFactory = Recorder Function();
|
||||
|
||||
const bool isCanvasKit = bool.fromEnvironment('FLUTTER_WEB_USE_SKIA', defaultValue: false);
|
||||
const bool isCanvasKit = bool.fromEnvironment('FLUTTER_WEB_USE_SKIA');
|
||||
|
||||
/// List of all benchmarks that run in the devicelab.
|
||||
///
|
||||
|
||||
@@ -31,11 +31,9 @@ void main() {
|
||||
final List<PointerEventRecord> records = <PointerEventRecord>[
|
||||
PointerEventRecord(Duration.zero, <PointerEvent>[
|
||||
PointerAddedEvent(
|
||||
timeStamp: Duration.zero,
|
||||
position: location,
|
||||
),
|
||||
PointerDownEvent(
|
||||
timeStamp: Duration.zero,
|
||||
position: location,
|
||||
pointer: 1,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user