Unverified Commit 0cdb3bf5 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

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

parent ac979888
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart' show Brightness;
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'colors.dart'; import 'colors.dart';
......
...@@ -3,14 +3,13 @@ ...@@ -3,14 +3,13 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'colors.dart'; import 'colors.dart';
import 'icon_theme_data.dart'; import 'icon_theme_data.dart';
import 'text_theme.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/. // Values derived from https://developer.apple.com/design/resources/.
const _CupertinoThemeDefaults _kDefaultTheme = _CupertinoThemeDefaults( const _CupertinoThemeDefaults _kDefaultTheme = _CupertinoThemeDefaults(
......
...@@ -10,6 +10,8 @@ import 'package:meta/meta.dart'; ...@@ -10,6 +10,8 @@ import 'package:meta/meta.dart';
import 'constants.dart'; import 'constants.dart';
import 'isolates.dart' as isolates; import 'isolates.dart' as isolates;
export 'isolates.dart' show ComputeCallback;
/// The dart:io implementation of [isolate.compute]. /// The dart:io implementation of [isolate.compute].
Future<R> compute<Q, R>(isolates.ComputeCallback<Q, R> callback, Q message, { String? debugLabel }) async { Future<R> compute<Q, R>(isolates.ComputeCallback<Q, R> callback, Q message, { String? debugLabel }) async {
debugLabel ??= kReleaseMode ? 'compute' : callback.toString(); debugLabel ??= kReleaseMode ? 'compute' : callback.toString();
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
import 'isolates.dart' as isolates; import 'isolates.dart' as isolates;
export 'isolates.dart' show ComputeCallback;
/// The dart:html implementation of [isolate.compute]. /// The dart:html implementation of [isolate.compute].
Future<R> compute<Q, R>(isolates.ComputeCallback<Q, R> callback, Q message, { String? debugLabel }) async { 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 // To avoid blocking the UI immediately for an expensive function call, we
......
...@@ -10,6 +10,10 @@ import 'diagnostics.dart'; ...@@ -10,6 +10,10 @@ import 'diagnostics.dart';
import 'print.dart'; import 'print.dart';
import 'stack_frame.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: // Examples can assume:
// late String runtimeType; // late String runtimeType;
// late bool draconisAlive; // late bool draconisAlive;
......
...@@ -14,11 +14,12 @@ import 'assertions.dart'; ...@@ -14,11 +14,12 @@ import 'assertions.dart';
import 'basic_types.dart'; import 'basic_types.dart';
import 'constants.dart'; import 'constants.dart';
import 'debug.dart'; import 'debug.dart';
import 'diagnostics.dart';
import 'object.dart'; import 'object.dart';
import 'platform.dart'; import 'platform.dart';
import 'print.dart'; import 'print.dart';
export 'basic_types.dart' show AsyncCallback, AsyncValueGetter, AsyncValueSetter;
// Examples can assume: // Examples can assume:
// mixin BarBinding on BindingBase { } // mixin BarBinding on BindingBase { }
......
...@@ -8,6 +8,8 @@ import 'assertions.dart'; ...@@ -8,6 +8,8 @@ import 'assertions.dart';
import 'basic_types.dart'; import 'basic_types.dart';
import 'diagnostics.dart'; import 'diagnostics.dart';
export 'dart:ui' show VoidCallback;
/// An object that maintains a list of listeners. /// An object that maintains a list of listeners.
/// ///
/// The listeners are typically used to notify clients that the object has been /// The listeners are typically used to notify clients that the object has been
......
...@@ -7,6 +7,9 @@ import 'dart:convert'; ...@@ -7,6 +7,9 @@ import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'dart:typed_data'; 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 /// Signature for getting notified when chunks of bytes are received while
/// consolidating the bytes of an [HttpClientResponse] into a [Uint8List]. /// consolidating the bytes of an [HttpClientResponse] into a [Uint8List].
/// ///
......
...@@ -8,6 +8,10 @@ import 'assertions.dart'; ...@@ -8,6 +8,10 @@ import 'assertions.dart';
import 'platform.dart'; import 'platform.dart';
import 'print.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 /// Returns true if none of the foundation library debug variables have been
/// changed. /// changed.
/// ///
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:typed_data'; 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. /// Write-only buffer for incrementally building a [ByteData] instance.
/// ///
......
...@@ -20,7 +20,6 @@ import 'autofill.dart'; ...@@ -20,7 +20,6 @@ import 'autofill.dart';
import 'message_codec.dart'; import 'message_codec.dart';
import 'platform_channel.dart'; import 'platform_channel.dart';
import 'system_channels.dart'; import 'system_channels.dart';
import 'system_chrome.dart';
import 'text_editing.dart'; import 'text_editing.dart';
import 'text_editing_delta.dart'; import 'text_editing_delta.dart';
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui; import 'dart:ui' as ui;
import 'dart:ui' show Brightness;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// 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:typed_data';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
......
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