mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Remove all traces of ViewConfiguration/PlatformConfiguration (#121751)
Remove all traces of ViewConfiguration/PlatformConfiguration
This commit is contained in:
parent
92bb306bcd
commit
50c80d9b50
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style license that can be
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
import 'dart:ui' show Brightness, DisplayFeature, DisplayFeatureState, DisplayFeatureType, GestureSettings, PlatformDispatcher, ViewConfiguration, ViewPadding;
|
import 'dart:ui' show Brightness, DisplayFeature, DisplayFeatureState, DisplayFeatureType, GestureSettings, PlatformDispatcher, ViewPadding;
|
||||||
|
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@ -1539,8 +1539,6 @@ class TestView implements FlutterView {
|
|||||||
@override
|
@override
|
||||||
final ViewPadding systemGestureInsets;
|
final ViewPadding systemGestureInsets;
|
||||||
@override
|
@override
|
||||||
final ViewConfiguration viewConfiguration = const ViewConfiguration();
|
|
||||||
@override
|
|
||||||
final List<DisplayFeature> displayFeatures = <DisplayFeature>[];
|
final List<DisplayFeature> displayFeatures = <DisplayFeature>[];
|
||||||
@override
|
@override
|
||||||
final GestureSettings gestureSettings = const GestureSettings();
|
final GestureSettings gestureSettings = const GestureSettings();
|
||||||
|
@ -460,16 +460,6 @@ class TestWindow implements ui.SingletonFlutterWindow {
|
|||||||
platformDispatcher.clearAccessibilityFeaturesTestValue();
|
platformDispatcher.clearAccessibilityFeaturesTestValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
|
||||||
ui.ViewConfiguration get viewConfiguration => _viewConfiguration ?? _window.viewConfiguration;
|
|
||||||
ui.ViewConfiguration? _viewConfiguration;
|
|
||||||
|
|
||||||
/// Hide the real view configuration and report the provided [value] instead.
|
|
||||||
set viewConfigurationTestValue(ui.ViewConfiguration? value) { // ignore: avoid_setters_without_getters
|
|
||||||
_viewConfiguration = value;
|
|
||||||
onMetricsChanged?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ui.VoidCallback? get onAccessibilityFeaturesChanged => platformDispatcher.onAccessibilityFeaturesChanged;
|
ui.VoidCallback? get onAccessibilityFeaturesChanged => platformDispatcher.onAccessibilityFeaturesChanged;
|
||||||
@override
|
@override
|
||||||
@ -939,9 +929,6 @@ class TestPlatformDispatcher implements ui.PlatformDispatcher {
|
|||||||
@override
|
@override
|
||||||
ui.Locale? computePlatformResolvedLocale(List<ui.Locale> supportedLocales) => _platformDispatcher.computePlatformResolvedLocale(supportedLocales);
|
ui.Locale? computePlatformResolvedLocale(List<ui.Locale> supportedLocales) => _platformDispatcher.computePlatformResolvedLocale(supportedLocales);
|
||||||
|
|
||||||
@override
|
|
||||||
ui.PlatformConfiguration get configuration => _platformDispatcher.configuration;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ui.FrameData get frameData => _platformDispatcher.frameData;
|
ui.FrameData get frameData => _platformDispatcher.frameData;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user