re-re-enable lint unnecessary_const (#20103)

This commit is contained in:
Alexandre Ardhuin
2018-08-02 12:02:32 +02:00
committed by GitHub
parent ffbaa97b50
commit eda03e2586
561 changed files with 41037 additions and 41036 deletions

View File

@@ -49,9 +49,9 @@ void main() {
runApp(
const Directionality(
textDirection: TextDirection.ltr,
child: const Dots(
child: const Center(
child: const Text('Touch me!'),
child: Dots(
child: Center(
child: Text('Touch me!'),
),
),
),

View File

@@ -69,7 +69,7 @@ class GestureDemoState extends State<GestureDemo> {
double _previousZoom;
double _zoom = 1.0;
static const List<MaterialColor> kSwatches = const <MaterialColor>[
static const List<MaterialColor> kSwatches = <MaterialColor>[
Colors.red,
Colors.pink,
Colors.purple,

View File

@@ -4,4 +4,4 @@
import 'package:flutter/widgets.dart';
void main() => runApp(const Center(child: const Text('Hello, world!', textDirection: TextDirection.ltr)));
void main() => runApp(const Center(child: Text('Hello, world!', textDirection: TextDirection.ltr)));

View File

@@ -48,7 +48,7 @@ class AdaptedGridItem extends StatelessWidget {
child: new Text(name)
),
const IconButton(
icon: const Icon(Icons.more_vert),
icon: Icon(Icons.more_vert),
onPressed: null
)
]

View File

@@ -43,7 +43,7 @@ void attachWidgetTreeToRenderTree(RenderProxyBox container) {
height: 300.0,
child: new Column(
children: <Widget>[
const Rectangle(const Color(0xFF00FFFF)),
const Rectangle(Color(0xFF00FFFF)),
new Material(
child: new Container(
padding: const EdgeInsets.all(10.0),
@@ -68,7 +68,7 @@ void attachWidgetTreeToRenderTree(RenderProxyBox container) {
),
),
),
const Rectangle(const Color(0xFFFFFF00)),
const Rectangle(Color(0xFFFFFF00)),
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
),

View File

@@ -25,10 +25,10 @@ final List<List<String>> _kNameLines = _kDialogText
final TextStyle _kDaveStyle = new TextStyle(color: Colors.indigo.shade400, height: 1.8);
final TextStyle _kHalStyle = new TextStyle(color: Colors.red.shade400, fontFamily: 'monospace');
const TextStyle _kBold = const TextStyle(fontWeight: FontWeight.bold);
const TextStyle _kUnderline = const TextStyle(
const TextStyle _kBold = TextStyle(fontWeight: FontWeight.bold);
const TextStyle _kUnderline = TextStyle(
decoration: TextDecoration.underline,
decorationColor: const Color(0xFF000000),
decorationColor: Color(0xFF000000),
decorationStyle: TextDecorationStyle.wavy
);
@@ -64,8 +64,8 @@ class SpeakerSeparator extends StatelessWidget {
constraints: const BoxConstraints.expand(height: 0.0),
margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 64.0),
decoration: const BoxDecoration(
border: const Border(
bottom: const BorderSide(color: const Color.fromARGB(24, 0, 0, 0))
border: Border(
bottom: BorderSide(color: Color.fromARGB(24, 0, 0, 0))
)
)
);