Unverified Commit 50c80d9b authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Remove all traces of ViewConfiguration/PlatformConfiguration (#121751)

Remove all traces of ViewConfiguration/PlatformConfiguration
parent 92bb306b
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// 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/material.dart';
......@@ -1539,8 +1539,6 @@ class TestView implements FlutterView {
@override
final ViewPadding systemGestureInsets;
@override
final ViewConfiguration viewConfiguration = const ViewConfiguration();
@override
final List<DisplayFeature> displayFeatures = <DisplayFeature>[];
@override
final GestureSettings gestureSettings = const GestureSettings();
......
......@@ -460,16 +460,6 @@ class TestWindow implements ui.SingletonFlutterWindow {
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
ui.VoidCallback? get onAccessibilityFeaturesChanged => platformDispatcher.onAccessibilityFeaturesChanged;
@override
......@@ -939,9 +929,6 @@ class TestPlatformDispatcher implements ui.PlatformDispatcher {
@override
ui.Locale? computePlatformResolvedLocale(List<ui.Locale> supportedLocales) => _platformDispatcher.computePlatformResolvedLocale(supportedLocales);
@override
ui.PlatformConfiguration get configuration => _platformDispatcher.configuration;
@override
ui.FrameData get frameData => _platformDispatcher.frameData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment