Fix new prefer_const_constructors after analyzer fix. (#39917)
This commit is contained in:
committed by
GitHub
parent
02344c9c81
commit
3118ae19ff
@@ -42,7 +42,7 @@ class _ImageLoaderState extends State<ImageLoader> {
|
||||
void initState() {
|
||||
// This is not an image, but we don't care since we're using a faked
|
||||
// http client.
|
||||
final NetworkImage image = NetworkImage('https://github.com/flutter/flutter');
|
||||
const NetworkImage image = NetworkImage('https://github.com/flutter/flutter');
|
||||
final ImageStream stream = image.resolve(ImageConfiguration.empty);
|
||||
ImageStreamListener listener;
|
||||
listener = ImageStreamListener(
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
void main() {
|
||||
runApp(Center(
|
||||
child: const Text('Hello, World', textDirection: TextDirection.ltr),
|
||||
runApp(const Center(
|
||||
child: Text('Hello, World', textDirection: TextDirection.ltr),
|
||||
));
|
||||
}
|
||||
|
||||
@@ -184,8 +184,8 @@ class _FocusDemoState extends State<FocusDemo> {
|
||||
decoration: InputDecoration(labelText: 'Enter Text', filled: true),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8.0),
|
||||
child: TextField(
|
||||
decoration: InputDecoration(
|
||||
border: OutlineInputBorder(),
|
||||
|
||||
@@ -82,8 +82,8 @@ class _HoverDemoState extends State<HoverDemo> {
|
||||
decoration: InputDecoration(labelText: 'Enter Text', filled: true),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8.0),
|
||||
child: TextField(
|
||||
autofocus: false,
|
||||
decoration: InputDecoration(
|
||||
|
||||
Reference in New Issue
Block a user