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