Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
bbdf6170
Unverified
Commit
bbdf6170
authored
Jun 28, 2022
by
Alexandre Ardhuin
Committed by
GitHub
Jun 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export public API types from services/*.dart library (#106316)
parent
c0ac61b5
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
131 additions
and
39 deletions
+131
-39
main.dart
dev/benchmarks/platform_channels_benchmarks/lib/main.dart
+0
-1
basic_messaging.dart
dev/integration_tests/channels/lib/src/basic_messaging.dart
+0
-1
example_code_parser_test.dart
..._tests/flutter_gallery/test/example_code_parser_test.dart
+0
-2
keyboard_key.tmpl
dev/tools/gen_keycodes/data/keyboard_key.tmpl
+2
-0
keyboard_maps.tmpl
dev/tools/gen_keycodes/data/keyboard_maps.tmpl
+2
-0
main.dart
examples/image_list/lib/main.dart
+0
-1
view.dart
packages/flutter/lib/src/rendering/view.dart
+0
-1
asset_bundle.dart
packages/flutter/lib/src/services/asset_bundle.dart
+3
-0
autofill.dart
packages/flutter/lib/src/services/autofill.dart
+3
-0
binary_messenger.dart
packages/flutter/lib/src/services/binary_messenger.dart
+3
-0
binding.dart
packages/flutter/lib/src/services/binding.dart
+6
-1
debug.dart
packages/flutter/lib/src/services/debug.dart
+2
-0
font_loader.dart
packages/flutter/lib/src/services/font_loader.dart
+2
-0
hardware_keyboard.dart
packages/flutter/lib/src/services/hardware_keyboard.dart
+8
-1
keyboard_key.dart
packages/flutter/lib/src/services/keyboard_key.dart
+2
-0
keyboard_maps.dart
packages/flutter/lib/src/services/keyboard_maps.dart
+2
-0
message_codecs.dart
packages/flutter/lib/src/services/message_codecs.dart
+6
-0
mouse_cursor.dart
packages/flutter/lib/src/services/mouse_cursor.dart
+3
-0
mouse_tracking.dart
packages/flutter/lib/src/services/mouse_tracking.dart
+5
-0
platform_channel.dart
packages/flutter/lib/src/services/platform_channel.dart
+3
-1
platform_views.dart
packages/flutter/lib/src/services/platform_views.dart
+6
-0
raw_keyboard.dart
packages/flutter/lib/src/services/raw_keyboard.dart
+4
-0
raw_keyboard_android.dart
packages/flutter/lib/src/services/raw_keyboard_android.dart
+5
-1
raw_keyboard_fuchsia.dart
packages/flutter/lib/src/services/raw_keyboard_fuchsia.dart
+5
-1
raw_keyboard_ios.dart
packages/flutter/lib/src/services/raw_keyboard_ios.dart
+5
-1
raw_keyboard_linux.dart
packages/flutter/lib/src/services/raw_keyboard_linux.dart
+5
-1
raw_keyboard_macos.dart
packages/flutter/lib/src/services/raw_keyboard_macos.dart
+5
-1
raw_keyboard_web.dart
packages/flutter/lib/src/services/raw_keyboard_web.dart
+5
-1
raw_keyboard_windows.dart
packages/flutter/lib/src/services/raw_keyboard_windows.dart
+5
-1
restoration.dart
packages/flutter/lib/src/services/restoration.dart
+2
-1
system_channels.dart
packages/flutter/lib/src/services/system_channels.dart
+2
-0
system_chrome.dart
packages/flutter/lib/src/services/system_chrome.dart
+3
-1
text_editing.dart
packages/flutter/lib/src/services/text_editing.dart
+1
-1
text_editing_delta.dart
packages/flutter/lib/src/services/text_editing_delta.dart
+7
-0
text_formatter.dart
packages/flutter/lib/src/services/text_formatter.dart
+4
-1
text_input.dart
packages/flutter/lib/src/services/text_input.dart
+9
-2
text_layout_metrics.dart
packages/flutter/lib/src/services/text_layout_metrics.dart
+6
-0
autofill_test.dart
packages/flutter/test/services/autofill_test.dart
+0
-2
delta_text_input_test.dart
packages/flutter/test/services/delta_text_input_test.dart
+0
-1
font_loader_test.dart
packages/flutter/test/services/font_loader_test.dart
+0
-2
message_codecs_test.dart
packages/flutter/test/services/message_codecs_test.dart
+0
-1
platform_views_test.dart
packages/flutter/test/services/platform_views_test.dart
+0
-1
restoration.dart
packages/flutter/test/services/restoration.dart
+0
-2
restoration_test.dart
packages/flutter/test/services/restoration_test.dart
+0
-2
text_input_test.dart
packages/flutter/test/services/text_input_test.dart
+0
-1
text_input_utils.dart
packages/flutter/test/services/text_input_utils.dart
+0
-1
_binding_io.dart
packages/flutter_test/lib/src/_binding_io.dart
+0
-1
test_text_input.dart
packages/flutter_test/lib/src/test_text_input.dart
+0
-2
test_default_binary_messenger_test.dart
...flutter_test/test/test_default_binary_messenger_test.dart
+0
-1
No files found.
dev/benchmarks/platform_channels_benchmarks/lib/main.dart
View file @
bbdf6170
...
...
@@ -4,7 +4,6 @@
import
'dart:async'
;
import
'dart:math'
as
math
;
import
'dart:typed_data'
;
import
'package:flutter/foundation.dart'
show
kDebugMode
;
import
'package:flutter/material.dart'
;
...
...
dev/integration_tests/channels/lib/src/basic_messaging.dart
View file @
bbdf6170
...
...
@@ -4,7 +4,6 @@
import
'dart:async'
;
import
'package:flutter/foundation.dart'
show
ReadBuffer
,
WriteBuffer
;
import
'package:flutter/services.dart'
;
import
'pair.dart'
;
...
...
dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart
View file @
bbdf6170
...
...
@@ -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/services.dart'
;
import
'package:flutter_gallery/gallery/example_code_parser.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
dev/tools/gen_keycodes/data/keyboard_key.tmpl
View file @
bbdf6170
...
...
@@ -4,6 +4,8 @@
import 'package:flutter/foundation.dart';
export 'package:flutter/foundation.dart' show DiagnosticPropertiesBuilder;
// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
// This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and
// should not be edited directly.
...
...
dev/tools/gen_keycodes/data/keyboard_maps.tmpl
View file @
bbdf6170
...
...
@@ -11,6 +11,8 @@
import 'keyboard_key.dart';
export 'keyboard_key.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
/// Maps Android-specific key codes to the matching [LogicalKeyboardKey].
const Map<int, LogicalKeyboardKey> kAndroidToLogicalKey = <int, LogicalKeyboardKey>{
@@@ANDROID_KEY_CODE_MAP@@@
...
...
examples/image_list/lib/main.dart
View file @
bbdf6170
...
...
@@ -5,7 +5,6 @@
import
'dart:async'
;
import
'dart:io'
;
import
'dart:math'
;
import
'dart:typed_data'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
...
...
packages/flutter/lib/src/rendering/view.dart
View file @
bbdf6170
...
...
@@ -8,7 +8,6 @@ import 'dart:ui' as ui show Scene, SceneBuilder, FlutterView;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/services.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'binding.dart'
;
import
'box.dart'
;
...
...
packages/flutter/lib/src/services/asset_bundle.dart
View file @
bbdf6170
...
...
@@ -11,6 +11,9 @@ import 'package:flutter/foundation.dart';
import
'binding.dart'
;
export
'dart:typed_data'
show
ByteData
;
export
'dart:ui'
show
ImmutableBuffer
;
/// A collection of resources used by the application.
///
/// Asset bundles contain resources, such as images and strings, that can be
...
...
packages/flutter/lib/src/services/autofill.dart
View file @
bbdf6170
...
...
@@ -3,8 +3,11 @@
// found in the LICENSE file.
import
'package:flutter/foundation.dart'
;
import
'text_input.dart'
;
export
'text_input.dart'
show
TextEditingValue
,
TextInputClient
,
TextInputConfiguration
,
TextInputConnection
;
/// A collection of commonly used autofill hint strings on different platforms.
///
/// Each hint is pre-defined on at least one supported platform. See their
...
...
packages/flutter/lib/src/services/binary_messenger.dart
View file @
bbdf6170
...
...
@@ -5,6 +5,9 @@
import
'dart:typed_data'
;
import
'dart:ui'
as
ui
;
export
'dart:typed_data'
show
ByteData
;
export
'dart:ui'
show
PlatformMessageResponseCallback
;
/// A function which takes a platform message and asynchronously returns an encoded response.
typedef
MessageHandler
=
Future
<
ByteData
?>?
Function
(
ByteData
?
message
);
...
...
packages/flutter/lib/src/services/binding.dart
View file @
bbdf6170
...
...
@@ -14,11 +14,16 @@ import 'asset_bundle.dart';
import
'binary_messenger.dart'
;
import
'hardware_keyboard.dart'
;
import
'message_codec.dart'
;
import
'raw_keyboard.dart'
;
import
'restoration.dart'
;
import
'system_channels.dart'
;
import
'text_input.dart'
;
export
'dart:ui'
show
ChannelBuffers
;
export
'binary_messenger.dart'
show
BinaryMessenger
;
export
'hardware_keyboard.dart'
show
HardwareKeyboard
,
KeyEventManager
;
export
'restoration.dart'
show
RestorationManager
;
/// Listens for platform messages and directs them to the [defaultBinaryMessenger].
///
/// The [ServicesBinding] also registers a [LicenseEntryCollector] that exposes
...
...
packages/flutter/lib/src/services/debug.dart
View file @
bbdf6170
...
...
@@ -6,6 +6,8 @@ import 'package:flutter/foundation.dart';
import
'hardware_keyboard.dart'
;
export
'hardware_keyboard.dart'
show
KeyDataTransitMode
;
/// Override the transit mode with which key events are simulated.
///
/// Setting [debugKeyEventSimulatorTransitModeOverride] is a good way to make
...
...
packages/flutter/lib/src/services/font_loader.dart
View file @
bbdf6170
...
...
@@ -6,6 +6,8 @@ import 'dart:ui';
import
'package:flutter/foundation.dart'
;
export
'dart:typed_data'
show
ByteData
;
/// A class that enables the dynamic loading of fonts at runtime.
///
/// The [FontLoader] class provides a builder pattern, where the caller builds
...
...
packages/flutter/lib/src/services/hardware_keyboard.dart
View file @
bbdf6170
...
...
@@ -5,10 +5,17 @@
import
'dart:ui'
as
ui
;
import
'package:flutter/foundation.dart'
;
import
'binding.dart'
;
import
'keyboard_key.dart'
;
import
'raw_keyboard.dart'
;
export
'dart:ui'
show
KeyData
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
export
'raw_keyboard.dart'
show
RawKeyboard
,
RawKeyEvent
;
/// Represents a lock mode of a keyboard, such as [KeyboardLockMode.capsLock].
///
/// A lock mode locks some of a keyboard's keys into a distinct mode of operation,
...
...
packages/flutter/lib/src/services/keyboard_key.dart
View file @
bbdf6170
...
...
@@ -4,6 +4,8 @@
import
'package:flutter/foundation.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
// This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and
// should not be edited directly.
...
...
packages/flutter/lib/src/services/keyboard_maps.dart
View file @
bbdf6170
...
...
@@ -11,6 +11,8 @@
import
'keyboard_key.dart'
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
/// Maps Android-specific key codes to the matching [LogicalKeyboardKey].
const
Map
<
int
,
LogicalKeyboardKey
>
kAndroidToLogicalKey
=
<
int
,
LogicalKeyboardKey
>{
3
:
LogicalKeyboardKey
.
goHome
,
...
...
packages/flutter/lib/src/services/message_codecs.dart
View file @
bbdf6170
...
...
@@ -9,6 +9,12 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer;
import
'message_codec.dart'
;
export
'dart:typed_data'
show
ByteData
;
export
'package:flutter/foundation.dart'
show
ReadBuffer
,
WriteBuffer
;
export
'message_codec.dart'
show
MethodCall
;
const
int
_writeBufferStartCapacity
=
64
;
/// [MessageCodec] with unencoded binary messages represented using [ByteData].
...
...
packages/flutter/lib/src/services/mouse_cursor.dart
View file @
bbdf6170
...
...
@@ -7,6 +7,9 @@ import 'package:flutter/gestures.dart';
import
'system_channels.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticLevel
,
DiagnosticPropertiesBuilder
;
export
'package:flutter/gestures.dart'
show
PointerEvent
;
/// Maintains the state of mouse cursors and manages how cursors are searched
/// for.
///
...
...
packages/flutter/lib/src/services/mouse_tracking.dart
View file @
bbdf6170
...
...
@@ -7,6 +7,11 @@ import 'package:flutter/gestures.dart';
import
'mouse_cursor.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'package:flutter/gestures.dart'
show
PointerEnterEvent
,
PointerExitEvent
,
PointerHoverEvent
;
export
'mouse_cursor.dart'
show
MouseCursor
;
/// Signature for listening to [PointerEnterEvent] events.
///
/// Used by [MouseTrackerAnnotation], [MouseRegion] and [RenderMouseRegion].
...
...
packages/flutter/lib/src/services/platform_channel.dart
View file @
bbdf6170
...
...
@@ -4,7 +4,6 @@
import
'dart:async'
;
import
'dart:developer'
;
import
'dart:ui'
show
PlatformMessageResponseCallback
;
import
'package:flutter/foundation.dart'
;
...
...
@@ -14,6 +13,9 @@ import 'debug.dart' show debugProfilePlatformChannels;
import
'message_codec.dart'
;
import
'message_codecs.dart'
;
export
'binary_messenger.dart'
show
BinaryMessenger
;
export
'message_codec.dart'
show
MessageCodec
,
MethodCall
,
MethodCodec
;
bool
_debugProfilePlatformChannelsIsRunning
=
false
;
const
Duration
_debugProfilePlatformChannelsRate
=
Duration
(
seconds:
1
);
final
Expando
<
BinaryMessenger
>
_debugBinaryMessengers
=
Expando
<
BinaryMessenger
>();
...
...
packages/flutter/lib/src/services/platform_views.dart
View file @
bbdf6170
...
...
@@ -11,6 +11,12 @@ import 'package:flutter/gestures.dart';
import
'message_codec.dart'
;
import
'system_channels.dart'
;
export
'dart:ui'
show
Offset
,
Size
,
TextDirection
,
VoidCallback
;
export
'package:flutter/gestures.dart'
show
PointerEvent
;
export
'message_codec.dart'
show
MessageCodec
;
/// Converts a given point from the global coordinate system in logical pixels
/// to the local coordinate system for a box.
///
...
...
packages/flutter/lib/src/services/raw_keyboard.dart
View file @
bbdf6170
...
...
@@ -17,6 +17,10 @@ import 'raw_keyboard_web.dart';
import
'raw_keyboard_windows.dart'
;
import
'system_channels.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
,
ValueChanged
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
/// An enum describing the side of the keyboard that a key is on, to allow
/// discrimination between which key is pressed (e.g. the left or right SHIFT
/// key).
...
...
packages/flutter/lib/src/services/raw_keyboard_android.dart
View file @
bbdf6170
...
...
@@ -4,10 +4,14 @@
import
'package:flutter/foundation.dart'
;
import
'keyboard_key.dart'
;
import
'keyboard_maps.dart'
;
import
'raw_keyboard.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
export
'raw_keyboard.dart'
show
KeyboardSide
,
ModifierKey
;
// Android sets the 0x80000000 bit on a character to indicate that it is a
// combining character, so we use this mask to remove that bit to make it a
// valid Unicode character again.
...
...
packages/flutter/lib/src/services/raw_keyboard_fuchsia.dart
View file @
bbdf6170
...
...
@@ -4,10 +4,14 @@
import
'package:flutter/foundation.dart'
;
import
'keyboard_key.dart'
;
import
'keyboard_maps.dart'
;
import
'raw_keyboard.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
export
'raw_keyboard.dart'
show
KeyboardSide
,
ModifierKey
;
/// Platform-specific key event data for Fuchsia.
///
/// This object contains information about key events obtained from Fuchsia's
...
...
packages/flutter/lib/src/services/raw_keyboard_ios.dart
View file @
bbdf6170
...
...
@@ -4,10 +4,14 @@
import
'package:flutter/foundation.dart'
;
import
'keyboard_key.dart'
;
import
'keyboard_maps.dart'
;
import
'raw_keyboard.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
export
'raw_keyboard.dart'
show
KeyboardSide
,
ModifierKey
;
/// Maps iOS specific string values of nonvisible keys to logical keys
///
/// See: https://developer.apple.com/documentation/uikit/uikeycommand/input_strings_for_special_keys?language=objc
...
...
packages/flutter/lib/src/services/raw_keyboard_linux.dart
View file @
bbdf6170
...
...
@@ -4,10 +4,14 @@
import
'package:flutter/foundation.dart'
;
import
'keyboard_key.dart'
;
import
'keyboard_maps.dart'
;
import
'raw_keyboard.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
export
'raw_keyboard.dart'
show
KeyboardSide
,
ModifierKey
;
/// Platform-specific key event data for Linux.
///
/// Different window toolkit implementations can map to different key codes. This class
...
...
packages/flutter/lib/src/services/raw_keyboard_macos.dart
View file @
bbdf6170
...
...
@@ -4,10 +4,14 @@
import
'package:flutter/foundation.dart'
;
import
'keyboard_key.dart'
;
import
'keyboard_maps.dart'
;
import
'raw_keyboard.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
export
'raw_keyboard.dart'
show
KeyboardSide
,
ModifierKey
;
/// Convert a UTF32 rune to its lower case.
int
runeToLowerCase
(
int
rune
)
{
// Assume only Basic Multilingual Plane runes have lower and upper cases.
...
...
packages/flutter/lib/src/services/raw_keyboard_web.dart
View file @
bbdf6170
...
...
@@ -4,10 +4,14 @@
import
'package:flutter/foundation.dart'
;
import
'keyboard_key.dart'
;
import
'keyboard_maps.dart'
;
import
'raw_keyboard.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
export
'raw_keyboard.dart'
show
KeyboardSide
,
ModifierKey
;
String
?
_unicodeChar
(
String
key
)
{
if
(
key
.
length
==
1
)
{
return
key
.
substring
(
0
,
1
);
...
...
packages/flutter/lib/src/services/raw_keyboard_windows.dart
View file @
bbdf6170
...
...
@@ -4,10 +4,14 @@
import
'package:flutter/foundation.dart'
;
import
'keyboard_key.dart'
;
import
'keyboard_maps.dart'
;
import
'raw_keyboard.dart'
;
export
'package:flutter/foundation.dart'
show
DiagnosticPropertiesBuilder
;
export
'keyboard_key.dart'
show
LogicalKeyboardKey
,
PhysicalKeyboardKey
;
export
'raw_keyboard.dart'
show
KeyboardSide
,
ModifierKey
;
// Virtual key VK_PROCESSKEY in Win32 API.
//
// Key down events related to IME operations use this as keyCode.
...
...
packages/flutter/lib/src/services/restoration.dart
View file @
bbdf6170
...
...
@@ -7,10 +7,11 @@ import 'dart:async';
import
'package:flutter/foundation.dart'
;
import
'package:flutter/scheduler.dart'
;
import
'message_codec.dart'
;
import
'message_codecs.dart'
;
import
'system_channels.dart'
;
export
'dart:typed_data'
show
Uint8List
;
typedef
_BucketVisitor
=
void
Function
(
RestorationBucket
bucket
);
/// Manages the restoration data in the framework and synchronizes it with the
...
...
packages/flutter/lib/src/services/system_channels.dart
View file @
bbdf6170
...
...
@@ -7,6 +7,8 @@ import 'dart:ui';
import
'message_codecs.dart'
;
import
'platform_channel.dart'
;
export
'platform_channel.dart'
show
BasicMessageChannel
,
MethodChannel
;
/// Platform channels used by the Flutter system.
class
SystemChannels
{
// This class is not meant to be instantiated or extended; this constructor
...
...
packages/flutter/lib/src/services/system_chrome.dart
View file @
bbdf6170
...
...
@@ -10,7 +10,9 @@ import 'package:flutter/foundation.dart';
import
'binding.dart'
;
import
'system_channels.dart'
;
export
'dart:ui'
show
Brightness
;
export
'dart:ui'
show
Brightness
,
Color
;
export
'binding.dart'
show
SystemUiChangeCallback
;
/// Specifies a particular device orientation.
///
...
...
packages/flutter/lib/src/services/text_editing.dart
View file @
bbdf6170
...
...
@@ -6,7 +6,7 @@ import 'dart:ui' show TextAffinity, TextPosition, TextRange;
import
'package:flutter/foundation.dart'
;
export
'dart:ui'
show
TextAffinity
,
TextPosition
,
TextRange
;
export
'dart:ui'
show
TextAffinity
,
TextPosition
;
/// A range of text that represents a selection.
@immutable
...
...
packages/flutter/lib/src/services/text_editing_delta.dart
View file @
bbdf6170
...
...
@@ -2,11 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:ui'
show
TextRange
;
import
'package:flutter/foundation.dart'
;
import
'text_editing.dart'
;
import
'text_input.dart'
show
TextEditingValue
;
export
'dart:ui'
show
TextRange
;
export
'text_editing.dart'
show
TextSelection
;
export
'text_input.dart'
show
TextEditingValue
;
TextAffinity
?
_toTextAffinity
(
String
?
affinity
)
{
switch
(
affinity
)
{
case
'TextAffinity.downstream'
:
...
...
packages/flutter/lib/src/services/text_formatter.dart
View file @
bbdf6170
...
...
@@ -8,9 +8,12 @@ import 'dart:math' as math;
import
'package:characters/characters.dart'
;
import
'package:flutter/foundation.dart'
;
import
'text_editing.dart'
;
import
'text_input.dart'
;
export
'package:flutter/foundation.dart'
show
TargetPlatform
;
export
'text_input.dart'
show
TextEditingValue
;
/// {@template flutter.services.textFormatter.maxLengthEnforcement}
/// ### [MaxLengthEnforcement.enforced] versus
/// [MaxLengthEnforcement.truncateAfterCompositionEnds]
...
...
packages/flutter/lib/src/services/text_input.dart
View file @
bbdf6170
...
...
@@ -15,15 +15,22 @@ import 'dart:ui' show
import
'package:flutter/foundation.dart'
;
import
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
import
'../../services.dart'
show
Clipboard
;
import
'autofill.dart'
;
import
'clipboard.dart'
show
Clipboard
;
import
'message_codec.dart'
;
import
'platform_channel.dart'
;
import
'system_channels.dart'
;
import
'text_editing.dart'
;
import
'text_editing_delta.dart'
;
export
'dart:ui'
show
TextAffinity
;
export
'dart:ui'
show
Brightness
,
FontWeight
,
Offset
,
Rect
,
Size
,
TextAlign
,
TextDirection
,
TextPosition
,
TextRange
;
export
'package:vector_math/vector_math_64.dart'
show
Matrix4
;
export
'autofill.dart'
show
AutofillConfiguration
,
AutofillScope
;
export
'text_editing.dart'
show
TextSelection
;
// TODO(a14n): the following export leads to Segmentation fault, see https://github.com/flutter/flutter/issues/106332
// export 'text_editing_delta.dart' show TextEditingDelta;
/// Indicates how to handle the intelligent replacement of dashes in text input.
///
...
...
packages/flutter/lib/src/services/text_layout_metrics.dart
View file @
bbdf6170
...
...
@@ -2,8 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:ui'
show
TextRange
;
import
'text_editing.dart'
;
export
'dart:ui'
show
TextPosition
,
TextRange
;
export
'text_editing.dart'
show
TextSelection
;
/// A read-only interface for accessing visual information about the
/// implementing text.
abstract
class
TextLayoutMetrics
{
...
...
packages/flutter/test/services/autofill_test.dart
View file @
bbdf6170
...
...
@@ -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:ui'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/services/delta_text_input_test.dart
View file @
bbdf6170
...
...
@@ -3,7 +3,6 @@
// found in the LICENSE file.
import
'dart:convert'
show
jsonDecode
;
import
'dart:ui'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/services/font_loader_test.dart
View file @
bbdf6170
...
...
@@ -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/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/services/message_codecs_test.dart
View file @
bbdf6170
...
...
@@ -8,7 +8,6 @@
import
'dart:convert'
;
import
'dart:typed_data'
;
import
'package:flutter/foundation.dart'
show
WriteBuffer
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/services/platform_views_test.dart
View file @
bbdf6170
...
...
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter/painting.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/services/restoration.dart
View file @
bbdf6170
...
...
@@ -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/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/services/restoration_test.dart
View file @
bbdf6170
...
...
@@ -2,9 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:typed_data'
;
import
'package:flutter/scheduler.dart'
;
import
'package:flutter/services.dart'
;
...
...
packages/flutter/test/services/text_input_test.dart
View file @
bbdf6170
...
...
@@ -4,7 +4,6 @@
import
'dart:convert'
show
jsonDecode
;
import
'dart:ui'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/services.dart'
;
...
...
packages/flutter/test/services/text_input_utils.dart
View file @
bbdf6170
...
...
@@ -3,7 +3,6 @@
// found in the LICENSE file.
import
'dart:convert'
show
utf8
;
import
'dart:ui'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter_test/lib/src/_binding_io.dart
View file @
bbdf6170
...
...
@@ -5,7 +5,6 @@
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:io'
;
import
'dart:typed_data'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
packages/flutter_test/lib/src/test_text_input.dart
View file @
bbdf6170
...
...
@@ -3,9 +3,7 @@
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:ui'
show
Rect
,
Offset
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/services.dart'
;
import
'binding.dart'
;
...
...
packages/flutter_test/test/test_default_binary_messenger_test.dart
View file @
bbdf6170
...
...
@@ -2,7 +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
'dart:ui'
as
ui
;
import
'package:flutter/services.dart'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment