Export public API types from foundation/*.dart library. (#105648)

This commit is contained in:
Alexandre Ardhuin
2022-06-09 20:53:11 +02:00
committed by GitHub
parent ac979888d5
commit 0cdb3bf582
13 changed files with 21 additions and 9 deletions

View File

@@ -3,7 +3,6 @@
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart' show Brightness;
import 'package:flutter/widgets.dart';
import 'colors.dart';

View File

@@ -3,14 +3,13 @@
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'colors.dart';
import 'icon_theme_data.dart';
import 'text_theme.dart';
export 'package:flutter/services.dart' show Brightness;
export 'package:flutter/foundation.dart' show Brightness;
// Values derived from https://developer.apple.com/design/resources/.
const _CupertinoThemeDefaults _kDefaultTheme = _CupertinoThemeDefaults(

View File

@@ -10,6 +10,8 @@ import 'package:meta/meta.dart';
import 'constants.dart';
import 'isolates.dart' as isolates;
export 'isolates.dart' show ComputeCallback;
/// The dart:io implementation of [isolate.compute].
Future<R> compute<Q, R>(isolates.ComputeCallback<Q, R> callback, Q message, { String? debugLabel }) async {
debugLabel ??= kReleaseMode ? 'compute' : callback.toString();

View File

@@ -4,6 +4,8 @@
import 'isolates.dart' as isolates;
export 'isolates.dart' show ComputeCallback;
/// The dart:html implementation of [isolate.compute].
Future<R> compute<Q, R>(isolates.ComputeCallback<Q, R> callback, Q message, { String? debugLabel }) async {
// To avoid blocking the UI immediately for an expensive function call, we

View File

@@ -10,6 +10,10 @@ import 'diagnostics.dart';
import 'print.dart';
import 'stack_frame.dart';
export 'basic_types.dart' show IterableFilter;
export 'diagnostics.dart' show DiagnosticLevel, DiagnosticsNode, DiagnosticPropertiesBuilder, DiagnosticsTreeStyle;
export 'stack_frame.dart' show StackFrame;
// Examples can assume:
// late String runtimeType;
// late bool draconisAlive;

View File

@@ -14,11 +14,12 @@ import 'assertions.dart';
import 'basic_types.dart';
import 'constants.dart';
import 'debug.dart';
import 'diagnostics.dart';
import 'object.dart';
import 'platform.dart';
import 'print.dart';
export 'basic_types.dart' show AsyncCallback, AsyncValueGetter, AsyncValueSetter;
// Examples can assume:
// mixin BarBinding on BindingBase { }

View File

@@ -8,6 +8,8 @@ import 'assertions.dart';
import 'basic_types.dart';
import 'diagnostics.dart';
export 'dart:ui' show VoidCallback;
/// An object that maintains a list of listeners.
///
/// The listeners are typically used to notify clients that the object has been

View File

@@ -7,6 +7,9 @@ import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
export 'dart:io' show HttpClientResponse;
export 'dart:typed_data' show Uint8List;
/// Signature for getting notified when chunks of bytes are received while
/// consolidating the bytes of an [HttpClientResponse] into a [Uint8List].
///

View File

@@ -8,6 +8,10 @@ import 'assertions.dart';
import 'platform.dart';
import 'print.dart';
export 'dart:ui' show Brightness;
export 'print.dart' show DebugPrintCallback;
/// Returns true if none of the foundation library debug variables have been
/// changed.
///

View File

@@ -5,7 +5,7 @@
import 'dart:math' as math;
import 'dart:typed_data';
export 'dart:typed_data' show ByteData, Float32List, Float64List, Int32List, Int64List, Uint8List;
export 'dart:typed_data' show ByteData, Endian, Float32List, Float64List, Int32List, Int64List, Uint8List;
/// Write-only buffer for incrementally building a [ByteData] instance.
///

View File

@@ -20,7 +20,6 @@ import 'autofill.dart';
import 'message_codec.dart';
import 'platform_channel.dart';
import 'system_channels.dart';
import 'system_chrome.dart';
import 'text_editing.dart';
import 'text_editing_delta.dart';

View File

@@ -4,7 +4,6 @@
import 'dart:math' as math;
import 'dart:ui' as ui;
import 'dart:ui' show Brightness;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:typed_data';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';