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

@@ -14,11 +14,11 @@ import 'package:flutter_gallery/gallery/demos.dart';
import 'package:flutter_gallery/gallery/app.dart' show GalleryApp;
// Reports success or failure to the native code.
const MethodChannel _kTestChannel = const MethodChannel('io.flutter.demo.gallery/TestLifecycleListener');
const MethodChannel _kTestChannel = MethodChannel('io.flutter.demo.gallery/TestLifecycleListener');
// We don't want to wait for animations to complete before tapping the
// back button in the demos with these titles.
const List<String> _kUnsynchronizedDemoTitles = const <String>[
const List<String> _kUnsynchronizedDemoTitles = <String>[
'Progress indicators',
'Activity Indicator',
'Video',
@@ -26,7 +26,7 @@ const List<String> _kUnsynchronizedDemoTitles = const <String>[
// These demos can't be backed out of by tapping a button whose
// tooltip is 'Back'.
const List<String> _kSkippedDemoTitles = const <String>[
const List<String> _kSkippedDemoTitles = <String>[
'Pull to refresh',
'Progress indicators',
'Activity Indicator',

View File

@@ -16,10 +16,10 @@ void main() {
await tester.pumpWidget(
// The bug only manifests itself when the screen's orientation is portrait
const Center(
child: const SizedBox(
child: SizedBox(
width: 450.0,
height: 800.0,
child: const GalleryApp(testMode: true)
child: GalleryApp(testMode: true)
)
)
);