re-re-enable lint unnecessary_const (#20103)
This commit is contained in:
committed by
GitHub
parent
ffbaa97b50
commit
eda03e2586
@@ -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!'),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)));
|
||||
|
||||
@@ -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
|
||||
)
|
||||
]
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
@@ -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))
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user