mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
Typo fixing sweep through packages/flutter. (#59219)
This commit is contained in:
parent
daddc914c7
commit
012cee2731
|
@ -18,7 +18,7 @@ import 'theme.dart';
|
|||
/// A palette of [Color] constants that describe colors commonly used when
|
||||
/// matching the iOS platform aesthetics.
|
||||
class CupertinoColors {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
CupertinoColors._();
|
||||
|
@ -572,7 +572,7 @@ class CupertinoColors {
|
|||
);
|
||||
}
|
||||
|
||||
/// A [Color] subclass that represents a family of colors, and the currect effective
|
||||
/// A [Color] subclass that represents a family of colors, and the correct effective
|
||||
/// color in the color family.
|
||||
///
|
||||
/// When used as a regular color, [CupertinoDynamicColor] is equivalent to the
|
||||
|
@ -772,7 +772,7 @@ class CupertinoDynamicColor extends Color with Diagnosticable {
|
|||
assert(_effectiveColor != null),
|
||||
// The super constructor has to be called with a dummy value in order to mark
|
||||
// this constructor const.
|
||||
// The field `value` is overriden in the class implementation.
|
||||
// The field `value` is overridden in the class implementation.
|
||||
super(0);
|
||||
|
||||
/// The current effective color.
|
||||
|
|
|
@ -1091,7 +1091,7 @@ class _ContextMenuRouteStaticState extends State<_ContextMenuRouteStatic> with T
|
|||
);
|
||||
}
|
||||
|
||||
// Build the animation for the overall draggable dismissable content.
|
||||
// Build the animation for the overall draggable dismissible content.
|
||||
Widget _buildAnimation(BuildContext context, Widget child) {
|
||||
return Transform.translate(
|
||||
offset: _moveAnimation.value,
|
||||
|
|
|
@ -36,7 +36,7 @@ const double _kTimerPickerHalfColumnPadding = 2;
|
|||
const double _kTimerPickerLabelPadSize = 4.5;
|
||||
const double _kTimerPickerLabelFontSize = 17.0;
|
||||
|
||||
// The width of each colmn of the countdown time picker.
|
||||
// The width of each column of the countdown time picker.
|
||||
const double _kTimerPickerColumnIntrinsicWidth = 106;
|
||||
// Unfortunately turning on magnification for the timer picker messes up the label
|
||||
// alignment. So we'll have to hard code the font size and turn magnification off
|
||||
|
@ -265,7 +265,7 @@ class CupertinoDatePicker extends StatefulWidget {
|
|||
);
|
||||
assert(
|
||||
mode != CupertinoDatePickerMode.date || (minimumYear >= 1 && this.initialDateTime.year >= minimumYear),
|
||||
'initial year is not greater than minimum year, or mininum year is not positive',
|
||||
'initial year is not greater than minimum year, or minimum year is not positive',
|
||||
);
|
||||
assert(
|
||||
mode != CupertinoDatePickerMode.date || maximumYear == null || this.initialDateTime.year <= maximumYear,
|
||||
|
@ -713,7 +713,7 @@ class _CupertinoDatePickerDateTimeState extends State<CupertinoDatePicker> {
|
|||
);
|
||||
}
|
||||
|
||||
// With the meridem picker set to `meridiemIndex`, and the hour picker set to
|
||||
// With the meridiem picker set to `meridiemIndex`, and the hour picker set to
|
||||
// `hourIndex`, is it possible to change the value of the minute picker, so
|
||||
// that the resulting date stays in the valid range.
|
||||
bool _isValidHour(int meridiemIndex, int hourIndex) {
|
||||
|
|
|
@ -26,7 +26,7 @@ import 'package:flutter/widgets.dart';
|
|||
/// * [Icon], used to show these icons.
|
||||
/// * <https://github.com/flutter/cupertino_icons/blob/master/map.png>, a map of the icons in this icons font.
|
||||
class CupertinoIcons {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
CupertinoIcons._();
|
||||
|
|
|
@ -49,7 +49,7 @@ const double _kSegmentMinPadding = 9.25;
|
|||
|
||||
// The threshold value used in hasDraggedTooFar, for checking against the square
|
||||
// L2 distance from the location of the current drag pointer, to the closest
|
||||
// vertice of the CupertinoSlidingSegmentedControl's Rect.
|
||||
// vertex of the CupertinoSlidingSegmentedControl's Rect.
|
||||
//
|
||||
// Both the mechanism and the value are speculated.
|
||||
const double _kTouchYDistanceThreshold = 50.0 * 50.0;
|
||||
|
@ -64,7 +64,7 @@ final SpringSimulation _kThumbSpringAnimationSimulation = SpringSimulation(
|
|||
const SpringDescription(mass: 1, stiffness: 503.551, damping: 44.8799),
|
||||
0,
|
||||
1,
|
||||
0, // Everytime a new spring animation starts the previous animation stops.
|
||||
0, // Every time a new spring animation starts the previous animation stops.
|
||||
);
|
||||
|
||||
const Duration _kSpringAnimationDuration = Duration(milliseconds: 412);
|
||||
|
|
|
@ -478,7 +478,7 @@ class _CupertinoTextSelectionControls extends TextSelectionControls {
|
|||
mediaQuery.size.width - mediaQuery.padding.right - _kArrowScreenPadding,
|
||||
) as double;
|
||||
|
||||
// The y-coordinate has to be calculated instead of directly quoting postion.dy,
|
||||
// The y-coordinate has to be calculated instead of directly quoting position.dy,
|
||||
// since the caller (TextSelectionOverlay._buildToolbar) does not know whether
|
||||
// the toolbar is going to be facing up or down.
|
||||
final double localBarTopY = isArrowPointingDown
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'platform.dart' as platform;
|
|||
/// The dart:html implementation of [platform.defaultTargetPlatform].
|
||||
platform.TargetPlatform get defaultTargetPlatform {
|
||||
// To getter a better guess at the targetPlatform we need to be able to
|
||||
// reference the window, but that won't be availible until we fix the
|
||||
// reference the window, but that won't be available until we fix the
|
||||
// platforms configuration for Flutter.
|
||||
platform.TargetPlatform result = _browserPlatform();
|
||||
if (platform.debugDefaultTargetPlatformOverride != null)
|
||||
|
|
|
@ -88,7 +88,7 @@ abstract class StackFilter {
|
|||
/// A const constructor to allow subclasses to be const.
|
||||
const StackFilter();
|
||||
|
||||
/// Filters the list of [StackFrame]s by updating corrresponding indices in
|
||||
/// Filters the list of [StackFrame]s by updating corresponding indices in
|
||||
/// `reasons`.
|
||||
///
|
||||
/// To elide a frame or number of frames, set the string
|
||||
|
@ -115,7 +115,7 @@ class RepetitiveStackFrameFilter extends StackFilter {
|
|||
}) : assert(frames != null),
|
||||
assert(replacement != null);
|
||||
|
||||
/// The shape of this repetative stack pattern.
|
||||
/// The shape of this repetitive stack pattern.
|
||||
final List<PartialStackFrame> frames;
|
||||
|
||||
/// The number of frames in this pattern.
|
||||
|
|
|
@ -288,7 +288,7 @@ class LicenseEntryWithLineBreaks extends LicenseEntry {
|
|||
/// * [AboutListTile], which is a widget that can be added to a [Drawer]. When
|
||||
/// tapped it calls [showAboutDialog].
|
||||
class LicenseRegistry {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
LicenseRegistry._();
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
/// * <http://unicode.org/reports/tr9/>, which describes the Unicode
|
||||
/// bidirectional text algorithm.
|
||||
class Unicode {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
Unicode._();
|
||||
|
|
|
@ -32,7 +32,7 @@ int _synthesiseDownButtons(int buttons, PointerDeviceKind kind) {
|
|||
/// [dart:ui.Window.onPointerDataPacket], and converts them to [PointerEvent]
|
||||
/// objects.
|
||||
class PointerEventConverter {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
PointerEventConverter._();
|
||||
|
|
|
@ -88,7 +88,7 @@ class BackButton extends StatelessWidget {
|
|||
/// to pop the [Navigator].
|
||||
///
|
||||
/// It can, for instance, be used to pop the platform's navigation stack
|
||||
/// via [SytemNavigator] instead of Flutter's [Navigator] in add-to-app
|
||||
/// via [SystemNavigator] instead of Flutter's [Navigator] in add-to-app
|
||||
/// situations.
|
||||
///
|
||||
/// Defaults to null.
|
||||
|
@ -142,7 +142,7 @@ class CloseButton extends StatelessWidget {
|
|||
/// to pop the [Navigator].
|
||||
///
|
||||
/// It can, for instance, be used to pop the platform's navigation stack
|
||||
/// via [SytemNavigator] instead of Flutter's [Navigator] in add-to-app
|
||||
/// via [SystemNavigator] instead of Flutter's [Navigator] in add-to-app
|
||||
/// situations.
|
||||
///
|
||||
/// Defaults to null.
|
||||
|
|
|
@ -231,7 +231,7 @@ class ButtonBar extends StatelessWidget {
|
|||
/// the widget, it then aligns its buttons in a column. The key difference here
|
||||
/// is that the [MainAxisAlignment] will then be treated as a
|
||||
/// cross-axis/horizontal alignment. For example, if the buttons overflow and
|
||||
/// [ButtonBar.alignment] was set to [MainAxisAligment.start], the column of
|
||||
/// [ButtonBar.alignment] was set to [MainAxisAlignment.start], the column of
|
||||
/// buttons would align to the horizontal start of the button bar.
|
||||
class _ButtonBarRow extends Flex {
|
||||
/// Creates a button bar that attempts to display in a row, but displays in
|
||||
|
@ -299,7 +299,7 @@ class _ButtonBarRow extends Flex {
|
|||
/// the widget, it then aligns its buttons in a column. The key difference here
|
||||
/// is that the [MainAxisAlignment] will then be treated as a
|
||||
/// cross-axis/horizontal alignment. For example, if the buttons overflow and
|
||||
/// [ButtonBar.alignment] was set to [MainAxisAligment.start], the buttons would
|
||||
/// [ButtonBar.alignment] was set to [MainAxisAlignment.start], the buttons would
|
||||
/// align to the horizontal start of the button bar.
|
||||
class _RenderButtonBarRow extends RenderFlex {
|
||||
/// Creates a button bar that attempts to display in a row, but displays in
|
||||
|
@ -376,9 +376,9 @@ class _RenderButtonBarRow extends RenderFlex {
|
|||
child.layout(childConstraints, parentUsesSize: true);
|
||||
|
||||
// Set the cross axis alignment for the column to match the main axis
|
||||
// alignment for a row. For [MainAxisAligment.spaceAround],
|
||||
// [MainAxisAligment.spaceBetween] and [MainAxisAlignment.spaceEvenly]
|
||||
// cases, use [MainAxisAligmnent.start].
|
||||
// alignment for a row. For [MainAxisAlignment.spaceAround],
|
||||
// [MainAxisAlignment.spaceBetween] and [MainAxisAlignment.spaceEvenly]
|
||||
// cases, use [MainAxisAlignment.start].
|
||||
switch (textDirection) {
|
||||
case TextDirection.ltr:
|
||||
switch (mainAxisAlignment) {
|
||||
|
|
|
@ -192,7 +192,7 @@ class MaterialAccentColor extends ColorSwatch<int> {
|
|||
/// The [Colors.transparent] color isn't shown here because it is entirely
|
||||
/// invisible!
|
||||
class Colors {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
Colors._();
|
||||
|
|
|
@ -80,7 +80,7 @@ import 'theme.dart';
|
|||
/// ```
|
||||
/// {@end-tool}
|
||||
class Feedback {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
Feedback._();
|
||||
|
|
|
@ -59,7 +59,7 @@ import 'package:flutter/widgets.dart';
|
|||
/// * [IconButton]
|
||||
/// * <https://design.google.com/icons/>
|
||||
class Icons {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
Icons._();
|
||||
|
|
|
@ -2784,7 +2784,7 @@ class InputDecoration {
|
|||
/// `contentPadding` is `EdgeInsets.fromLTRB(0, 8, 0, 8)` when [isDense] is
|
||||
/// true and `EdgeInsets.fromLTRB(0, 12, 0, 12)` when [isDense] is false`.
|
||||
///
|
||||
/// If `isOutline` property of [border] is true then `contentPaddding` is
|
||||
/// If `isOutline` property of [border] is true then `contentPadding` is
|
||||
/// `EdgeInsets.fromLTRB(12, 20, 12, 12)` when [isDense] is true
|
||||
/// and `EdgeInsets.fromLTRB(12, 24, 12, 16)` when [isDense] is false.
|
||||
final EdgeInsetsGeometry contentPadding;
|
||||
|
|
|
@ -436,7 +436,7 @@ class _MergeableMaterialState extends State<MergeableMaterial> with TickerProvid
|
|||
}
|
||||
} else {
|
||||
// Check whether the items are the same type. If they are, it means that
|
||||
// their places have been swaped.
|
||||
// their places have been swapped.
|
||||
if ((_children[j] is MaterialGap) == (newChildren[i] is MaterialGap)) {
|
||||
_children[j] = newChildren[i];
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ class __ZoomPageTransitionState extends State<_ZoomPageTransition> {
|
|||
}
|
||||
|
||||
// This check ensures that the animation reverses the original animation if
|
||||
// the transition were interruped midway. This prevents a disjointed
|
||||
// the transition were interrupted midway. This prevents a disjointed
|
||||
// experience since the reverse animation uses different fade and scaling
|
||||
// curves.
|
||||
bool get _transitionWasInterrupted {
|
||||
|
|
|
@ -329,7 +329,7 @@ class _SearchPageRoute<T> extends PageRoute<T> {
|
|||
delegate._route == null,
|
||||
'The ${delegate.runtimeType} instance is currently used by another active '
|
||||
'search. Please close that search by calling close() on the SearchDelegate '
|
||||
'before openening another search with the same delegate instance.',
|
||||
'before opening another search with the same delegate instance.',
|
||||
);
|
||||
delegate._route = this;
|
||||
}
|
||||
|
|
|
@ -2290,7 +2290,7 @@ class _EmptySliderTickMarkShape extends SliderTickMarkShape {
|
|||
/// that will not paint any component shape. A static reference is stored in
|
||||
/// [SliderTickMarkShape.noThumb] and [SliderTickMarkShape.noOverlay]. When this value
|
||||
/// is specified for [SliderThemeData.thumbShape], the thumb painting is
|
||||
/// skipped. When this value is specified for [SliderThemeData.overlaySHape],
|
||||
/// skipped. When this value is specified for [SliderThemeData.overlayShape],
|
||||
/// the overlay painting is skipped.
|
||||
class _EmptySliderComponentShape extends SliderComponentShape {
|
||||
@override
|
||||
|
|
|
@ -416,7 +416,7 @@ abstract class ImageStreamCompleter with Diagnosticable {
|
|||
_onLastListenerRemovedCallbacks.add(callback);
|
||||
}
|
||||
|
||||
/// Removes a callback previously suppplied to
|
||||
/// Removes a callback previously supplied to
|
||||
/// [addOnLastListenerRemovedCallback].
|
||||
void removeOnLastListenerRemovedCallback(VoidCallback callback) {
|
||||
assert(callback != null);
|
||||
|
|
|
@ -104,7 +104,7 @@ class InlineSpanSemanticsInformation {
|
|||
/// * The subclass [TextSpan] specifies text and may contain child [InlineSpan]s.
|
||||
/// * The subclass [PlaceholderSpan] represents a placeholder that may be
|
||||
/// filled with non-text content. [PlaceholderSpan] itself defines a
|
||||
/// [ui.PlaceholderAlignemnt] and a [TextBaseline]. To be useful,
|
||||
/// [ui.PlaceholderAlignment] and a [TextBaseline]. To be useful,
|
||||
/// [PlaceholderSpan] must be extended to define content. An instance of
|
||||
/// this is the [WidgetSpan] class in the widgets library.
|
||||
/// * The subclass [WidgetSpan] specifies embedded inline widgets.
|
||||
|
|
|
@ -11,7 +11,7 @@ import 'basic_types.dart';
|
|||
|
||||
/// Utility functions for working with matrices.
|
||||
class MatrixUtils {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
MatrixUtils._();
|
||||
|
|
|
@ -1086,7 +1086,7 @@ class TextStyle with Diagnosticable {
|
|||
return ui.ParagraphStyle(
|
||||
textAlign: textAlign,
|
||||
textDirection: textDirection,
|
||||
// Here, we stablish the contents of this TextStyle as the paragraph's default font
|
||||
// Here, we establish the contents of this TextStyle as the paragraph's default font
|
||||
// unless an override is passed in.
|
||||
fontWeight: fontWeight ?? this.fontWeight,
|
||||
fontStyle: fontStyle ?? this.fontStyle,
|
||||
|
|
|
@ -794,7 +794,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin {
|
|||
_textLayoutLastMinWidth = null;
|
||||
}
|
||||
|
||||
// Retuns a cached plain text version of the text in the painter.
|
||||
// Returns a cached plain text version of the text in the painter.
|
||||
String _cachedPlainText;
|
||||
String get _plainText {
|
||||
_cachedPlainText ??= _textPainter.text.toPlainText();
|
||||
|
|
|
@ -37,7 +37,7 @@ class AnnotationEntry<T> {
|
|||
|
||||
@override
|
||||
String toString() {
|
||||
return '${objectRuntimeType(this, 'AnnotationEntry')}(annotation: $annotation, localPostion: $localPosition)';
|
||||
return '${objectRuntimeType(this, 'AnnotationEntry')}(annotation: $annotation, localPosition: $localPosition)';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@ abstract class MouseCursorSession {
|
|||
/// I-beam.
|
||||
///
|
||||
/// During the painting phase, [MouseCursor] objects are assigned to regions on
|
||||
/// the screen via annotaions. Later during a device update (e.g. when a mouse
|
||||
/// the screen via annotations. Later during a device update (e.g. when a mouse
|
||||
/// moves), [MouseTracker] finds the _active cursor_ of each mouse device, which
|
||||
/// is the front-most region associated with the position of each mouse cursor,
|
||||
/// or defaults to [SystemMouseCursors.basic] if no cursors are associated with
|
||||
|
@ -218,7 +218,7 @@ abstract class MouseCursor with Diagnosticable {
|
|||
|
||||
/// A very short description of the mouse cursor.
|
||||
///
|
||||
/// The [debugDescription] shoule be a few words that can describe this cursor
|
||||
/// The [debugDescription] should be a few words that can describe this cursor
|
||||
/// to make debug information more readable. It is returned as the [toString]
|
||||
/// when the diagnostic level is at or above [DiagnosticLevel.info].
|
||||
///
|
||||
|
@ -431,7 +431,7 @@ class SystemMouseCursors {
|
|||
|
||||
/// A cursor that indicates a forbidden action.
|
||||
///
|
||||
/// Typically the shape of a circle with a diagnal line.
|
||||
/// Typically the shape of a circle with a diagonal line.
|
||||
static const SystemMouseCursor forbidden = SystemMouseCursor._(kind: 'forbidden');
|
||||
|
||||
/// A cursor that indicates something that can be dragged.
|
||||
|
|
|
@ -93,7 +93,7 @@ class MouseTrackerAnnotation with Diagnosticable {
|
|||
///
|
||||
/// * [onEnter], which is triggered when a mouse pointer enters the region.
|
||||
/// * [MouseRegion.onExit], which uses this callback, but is not triggered in
|
||||
/// certain cases and does not always match its earier [MouseRegion.onEnter].
|
||||
/// certain cases and does not always match its earlier [MouseRegion.onEnter].
|
||||
final PointerExitEventListener onExit;
|
||||
|
||||
/// The mouse cursor for mouse pointers that are hovering over the region.
|
||||
|
@ -103,7 +103,7 @@ class MouseTrackerAnnotation with Diagnosticable {
|
|||
/// found at the new location.
|
||||
///
|
||||
/// Defaults to [MouseCursor.defer], deferring the choice of cursor to the next
|
||||
/// region behing it in hit-test order.
|
||||
/// region behind it in hit-test order.
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
|
@ -582,10 +582,10 @@ mixin _MouseTrackerEventMixin on BaseMouseTracker {
|
|||
}
|
||||
}
|
||||
|
||||
/// Trackes the relationship between mouse devices and annotations, and
|
||||
/// Tracks the relationship between mouse devices and annotations, and
|
||||
/// triggers mouse events and cursor changes accordingly.
|
||||
///
|
||||
/// The [MouseTracker] trackes the relationship between mouse devices and
|
||||
/// The [MouseTracker] tracks the relationship between mouse devices and
|
||||
/// [MouseTrackerAnnotation]s, and when such relationship changes, triggers
|
||||
/// the following changes if applicable:
|
||||
///
|
||||
|
|
|
@ -927,7 +927,7 @@ abstract class RenderViewportBase<ParentDataClass extends ContainerParentDataMix
|
|||
///
|
||||
/// The `parentMainAxisPosition` is a distance from the top edge (for vertical
|
||||
/// viewports) or left edge (for horizontal viewports) of the viewport bounds.
|
||||
/// This describes a line, perpendicular to the viewport's main axis, heretofor
|
||||
/// This describes a line, perpendicular to the viewport's main axis, heretofore
|
||||
/// known as the target line.
|
||||
///
|
||||
/// The child's coordinate system's origin in the main axis is at the leading
|
||||
|
|
|
@ -4060,7 +4060,7 @@ abstract class SemanticsSortKey with Diagnosticable implements Comparable<Semant
|
|||
///
|
||||
/// [OrdinalSortKey]s are sorted by the optional [name], then by their [order].
|
||||
/// If [SemanticsProperties.sortKey] is a [OrdinalSortKey], then all the other
|
||||
/// speficied sort keys in the same semantics group must also be
|
||||
/// specified sort keys in the same semantics group must also be
|
||||
/// [OrdinalSortKey]s.
|
||||
///
|
||||
/// Keys with no [name] are compared to other keys with no [name], and will
|
||||
|
|
|
@ -18,7 +18,7 @@ import 'semantics_event.dart' show AnnounceSemanticsEvent, TooltipSemanticsEvent
|
|||
/// When possible, prefer using mechanisms like [Semantics] to implicitly
|
||||
/// trigger announcements over using this event.
|
||||
class SemanticsService {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
SemanticsService._();
|
||||
|
|
|
@ -47,7 +47,7 @@ abstract class BinaryMessenger {
|
|||
/// passed to [setMessageHandler].
|
||||
///
|
||||
/// This method is useful for tests or test harnesses that want to assert the
|
||||
/// handler for the vspecified channel has not been altered by a previous test.
|
||||
/// handler for the specified channel has not been altered by a previous test.
|
||||
bool checkMessageHandler(String channel, MessageHandler handler);
|
||||
|
||||
/// Set a mock callback for intercepting messages from the [send] method on
|
||||
|
|
|
@ -23,7 +23,7 @@ class ClipboardData {
|
|||
|
||||
/// Utility methods for interacting with the system's clipboard.
|
||||
class Clipboard {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
Clipboard._();
|
||||
|
|
|
@ -11,7 +11,7 @@ import 'system_channels.dart';
|
|||
/// This API is intentionally terse since it calls default platform behavior. It
|
||||
/// is not suitable for precise control of the system's haptic feedback module.
|
||||
class HapticFeedback {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
HapticFeedback._();
|
||||
|
|
|
@ -31,7 +31,7 @@ import 'platform_channel.dart';
|
|||
'This feature was deprecated after v1.6.5.'
|
||||
)
|
||||
class BinaryMessages {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
BinaryMessages._();
|
||||
|
|
|
@ -99,7 +99,7 @@ class PlatformViewsService {
|
|||
/// first time.
|
||||
///
|
||||
/// The `id, `viewType, and `layoutDirection` parameters must not be null.
|
||||
/// If `creationParams` is non null then `cretaionParamsCodec` must not be null.
|
||||
/// If `creationParams` is non null then `creationParamsCodec` must not be null.
|
||||
static AndroidViewController initAndroidView({
|
||||
@required int id,
|
||||
@required String viewType,
|
||||
|
|
|
@ -9,7 +9,7 @@ import 'platform_channel.dart';
|
|||
|
||||
/// Platform channels used by the Flutter system.
|
||||
class SystemChannels {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
SystemChannels._();
|
||||
|
|
|
@ -214,7 +214,7 @@ List<String> _stringify(List<dynamic> list) => <String>[
|
|||
/// Controls specific aspects of the operating system's graphical interface and
|
||||
/// how it interacts with the application.
|
||||
class SystemChrome {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
SystemChrome._();
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'system_channels.dart';
|
|||
|
||||
/// Controls specific aspects of the system navigation stack.
|
||||
class SystemNavigator {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
SystemNavigator._();
|
||||
|
|
|
@ -15,7 +15,7 @@ enum SystemSoundType {
|
|||
/// Provides access to the library of short system specific sounds for common
|
||||
/// tasks.
|
||||
class SystemSound {
|
||||
// This class is not meant to be instatiated or extended; this constructor
|
||||
// This class is not meant to be instantiated or extended; this constructor
|
||||
// prevents instantiation and extension.
|
||||
// ignore: unused_element
|
||||
SystemSound._();
|
||||
|
|
|
@ -947,7 +947,7 @@ TextInputAction _toTextInputAction(String action) {
|
|||
return TextInputAction.send;
|
||||
case 'TextInputAction.next':
|
||||
return TextInputAction.next;
|
||||
case 'TextInputAction.previuos':
|
||||
case 'TextInputAction.previous':
|
||||
return TextInputAction.previous;
|
||||
case 'TextInputAction.continue_action':
|
||||
return TextInputAction.continueAction;
|
||||
|
|
|
@ -930,7 +930,7 @@ class FocusableActionDetector extends StatefulWidget {
|
|||
/// widget.
|
||||
///
|
||||
/// The [cursor] defaults to [MouseCursor.defer], deferring the choice of
|
||||
/// cursor to the next region behing it in hit-test order.
|
||||
/// cursor to the next region behind it in hit-test order.
|
||||
final MouseCursor mouseCursor;
|
||||
|
||||
/// The child widget for this [FocusableActionDetector] widget.
|
||||
|
|
|
@ -200,7 +200,7 @@ class WidgetsApp extends StatefulWidget {
|
|||
assert(
|
||||
home == null ||
|
||||
onGenerateInitialRoutes == null,
|
||||
'If onGenerateInitialRoutes is specifiied, the home argument will be '
|
||||
'If onGenerateInitialRoutes is specified, the home argument will be '
|
||||
'redundant.'
|
||||
),
|
||||
assert(
|
||||
|
@ -1190,7 +1190,7 @@ class _WidgetsAppState extends State<WidgetsApp> with WidgetsBindingObserver {
|
|||
}
|
||||
}
|
||||
// countryCode-only match. When all else except default supported locale fails,
|
||||
// attempt to match by country only, as a user is likely to be familar with a
|
||||
// attempt to match by country only, as a user is likely to be familiar with a
|
||||
// language from their listed country.
|
||||
if (matchesCountryCode == null && userLocale.countryCode != null) {
|
||||
match = countryLocales[userLocale.countryCode];
|
||||
|
@ -1201,7 +1201,7 @@ class _WidgetsAppState extends State<WidgetsApp> with WidgetsBindingObserver {
|
|||
}
|
||||
// When there is no languageCode-only match. Fallback to matching countryCode only. Country
|
||||
// fallback only applies on iOS. When there is no countryCode-only match, we return first
|
||||
// suported locale.
|
||||
// supported locale.
|
||||
final Locale resolvedLocale = matchesLanguageCode ?? matchesCountryCode ?? supportedLocales.first;
|
||||
return resolvedLocale;
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ class AutofillGroup extends StatefulWidget {
|
|||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [EditableTextState], where this method is used to retrive the closest
|
||||
/// * [EditableTextState], where this method is used to retrieve the closest
|
||||
/// [AutofillGroupState].
|
||||
static AutofillGroupState of(BuildContext context) {
|
||||
final _AutofillScope scope = context.dependOnInheritedWidgetOfExactType<_AutofillScope>();
|
||||
|
|
|
@ -6003,7 +6003,7 @@ class MouseRegion extends StatefulWidget {
|
|||
///
|
||||
/// {@tool dartpad --template=stateful_widget_scaffold_center}
|
||||
/// The following example shows a widget that hides its content one second
|
||||
/// after behing hovered, and also exposes the enter and exit callbacks.
|
||||
/// after being hovered, and also exposes the enter and exit callbacks.
|
||||
/// Because the widget conditionally creates the `MouseRegion`, and leaks the
|
||||
/// hover state, it needs to take the restriction into consideration. In this
|
||||
/// case, since it has access to the event that triggers the disappearance of
|
||||
|
@ -6109,7 +6109,7 @@ class MouseRegion extends StatefulWidget {
|
|||
/// found at the new location.
|
||||
///
|
||||
/// The [cursor] defaults to [MouseCursor.defer], deferring the choice of
|
||||
/// cursor to the next region behing it in hit-test order.
|
||||
/// cursor to the next region behind it in hit-test order.
|
||||
final MouseCursor cursor;
|
||||
|
||||
/// Whether this widget should prevent other [MouseRegion]s visually behind it
|
||||
|
|
|
@ -162,7 +162,7 @@ class DraggableScrollableSheet extends StatefulWidget {
|
|||
/// this notification bubbles up through the tree, which means a given
|
||||
/// [NotificationListener] will receive notifications for all descendant
|
||||
/// [DraggableScrollableSheet] widgets. To focus on notifications from the
|
||||
/// nearest [DraggableScorllableSheet] descendant, check that the [depth]
|
||||
/// nearest [DraggableScrollableSheet] descendant, check that the [depth]
|
||||
/// property of the notification is zero.
|
||||
///
|
||||
/// When an extent notification is received by a [NotificationListener], the
|
||||
|
@ -556,7 +556,7 @@ class DraggableScrollableActuator extends StatelessWidget {
|
|||
}
|
||||
}
|
||||
|
||||
/// A [ChangeNotifier] to use with [InheritedResetNotifer] to notify
|
||||
/// A [ChangeNotifier] to use with [InheritedResetNotifier] to notify
|
||||
/// descendants that they should reset to initial state.
|
||||
class _ResetNotifier extends ChangeNotifier {
|
||||
/// Whether someone called [sendReset] or not.
|
||||
|
|
|
@ -2486,7 +2486,7 @@ class _Editable extends LeafRenderObjectWidget {
|
|||
//
|
||||
// When typing in a direction that opposes the base direction
|
||||
// of the paragraph, un-enclosed whitespace gets the directionality
|
||||
// of the paragraph. This is often at odds with what is immeditely
|
||||
// of the paragraph. This is often at odds with what is immediately
|
||||
// being typed causing the caret to jump to the wrong side of the text.
|
||||
// This formatter makes use of the RLM and LRM to cause the text
|
||||
// shaper to inherently treat the whitespace as being surrounded
|
||||
|
@ -2604,7 +2604,7 @@ class _WhitespaceDirectionalityFormatter extends TextInputFormatter {
|
|||
previousWasDirectionalityMarker = true;
|
||||
} else {
|
||||
// If the whitespace was already enclosed by the same directionality,
|
||||
// we can remove the artifically added marker.
|
||||
// we can remove the artificially added marker.
|
||||
if (!previousWasDirectionalityMarker &&
|
||||
previousWasWhitespace &&
|
||||
getDirection(codepoint) == _previousNonWhitespaceDirection) {
|
||||
|
|
|
@ -474,7 +474,7 @@ class _AnimatedFadeOutFadeInState extends ImplicitlyAnimatedWidgetState<_Animate
|
|||
),
|
||||
]))..addStatusListener((AnimationStatus status) {
|
||||
if (_placeholderOpacityAnimation.isCompleted) {
|
||||
// Need to rebuild to remove placeholder now that it is invisibile.
|
||||
// Need to rebuild to remove placeholder now that it is invisible.
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -187,11 +187,11 @@ abstract class GlobalKey<T extends State<StatefulWidget>> extends Key {
|
|||
static void _debugVerifyGlobalKeyReservation() {
|
||||
assert(() {
|
||||
final Map<GlobalKey, Element> keyToParent = <GlobalKey, Element>{};
|
||||
_debugReservations.forEach((Element parent, Map<Element, GlobalKey> chidToKey) {
|
||||
_debugReservations.forEach((Element parent, Map<Element, GlobalKey> childToKey) {
|
||||
// We ignore parent that are detached.
|
||||
if (parent.renderObject?.attached == false)
|
||||
return;
|
||||
chidToKey.forEach((Element child, GlobalKey key) {
|
||||
childToKey.forEach((Element child, GlobalKey key) {
|
||||
// If parent = null, the node is deactivated by its parent and is
|
||||
// not re-attached to other part of the tree. We should ignore this
|
||||
// node.
|
||||
|
|
|
@ -338,7 +338,7 @@ class _HeroState extends State<Hero> {
|
|||
// needs to be built to replace the original hero widget. When
|
||||
// `shouldIncludeChildInPlaceholder` is set to true and `widget.placeholderBuilder`
|
||||
// is null, the placeholder widget will include the original hero's child
|
||||
// widget as a descendant, allowing the orignal element tree to be preserved.
|
||||
// widget as a descendant, allowing the original element tree to be preserved.
|
||||
//
|
||||
// It is typically set to true for the *from* hero in a push transition,
|
||||
// and false otherwise.
|
||||
|
|
|
@ -87,7 +87,7 @@ ImageConfiguration createLocalImageConfiguration(BuildContext context, { Size si
|
|||
///
|
||||
/// Callers should be cautious about pinning large images or a large number of
|
||||
/// images in memory, as this can result in running out of memory and being
|
||||
/// killed by the operating system. The lower the avilable physical memory, the
|
||||
/// killed by the operating system. The lower the available physical memory, the
|
||||
/// more susceptible callers will be to running into OOM issues. These issues
|
||||
/// manifest as immediate process death, sometimes with no other error messages.
|
||||
///
|
||||
|
|
|
@ -24,7 +24,7 @@ typedef LayoutWidgetBuilder = Widget Function(BuildContext context, BoxConstrain
|
|||
/// * The first time the widget is laid out.
|
||||
/// * When the parent widget passes different layout constraints.
|
||||
/// * When the parent widget updates this widget.
|
||||
/// * When the depedencies that the [builder] function subscribes to change.
|
||||
/// * When the dependencies that the [builder] function subscribes to change.
|
||||
///
|
||||
/// The [builder] function is _not_ called during layout if the parent passes
|
||||
/// the same constraints repeatedly.
|
||||
|
|
|
@ -177,7 +177,7 @@ class PageStorageBucket {
|
|||
/// Widget build(BuildContext context) {
|
||||
/// return Scaffold(
|
||||
/// appBar: AppBar(
|
||||
/// title: Text("Persistance Example"),
|
||||
/// title: Text("Persistence Example"),
|
||||
/// ),
|
||||
/// body: PageStorage(
|
||||
/// child: pages[currentTab],
|
||||
|
|
|
@ -101,7 +101,7 @@ class ScrollAwareImageProvider<T> extends ImageProvider<T> {
|
|||
});
|
||||
return;
|
||||
}
|
||||
// We are in the tree, we're not scrolling too fast, the cache doens't
|
||||
// We are in the tree, we're not scrolling too fast, the cache doesn't
|
||||
// have our image, and no one has otherwise completed the stream. Go.
|
||||
imageProvider.resolveStreamForKey(configuration, stream, key, handleError);
|
||||
}
|
||||
|
|
|
@ -309,7 +309,7 @@ abstract class ScrollPosition extends ViewportOffset with ScrollMetrics {
|
|||
void correctBy(double correction) {
|
||||
assert(
|
||||
_pixels != null,
|
||||
'An initial pixels value must exist by caling correctPixels on the ScrollPosition',
|
||||
'An initial pixels value must exist by calling correctPixels on the ScrollPosition',
|
||||
);
|
||||
_pixels += correction;
|
||||
_didChangeViewportDimensionOrReceiveCorrection = true;
|
||||
|
|
|
@ -27,7 +27,7 @@ import 'viewport.dart';
|
|||
/// A representation of how a [ScrollView] should dismiss the on-screen
|
||||
/// keyboard.
|
||||
enum ScrollViewKeyboardDismissBehavior {
|
||||
/// `manual` means there is no automatic dimissal of the on-screen keyboard.
|
||||
/// `manual` means there is no automatic dismissal of the on-screen keyboard.
|
||||
/// It is up to the client to dismiss the keyboard.
|
||||
manual,
|
||||
/// `onDrag` means that the [ScrollView] will dismiss an on-screen keyboard
|
||||
|
|
|
@ -55,7 +55,7 @@ class DefaultTextStyle extends InheritedTheme {
|
|||
assert(textWidthBasis != null),
|
||||
super(key: key, child: child);
|
||||
|
||||
/// A const-constructible default text style that provides fallback values.
|
||||
/// A const-constructable default text style that provides fallback values.
|
||||
///
|
||||
/// Returned from [of] when the given [BuildContext] doesn't have an enclosing default text style.
|
||||
///
|
||||
|
|
|
@ -869,7 +869,7 @@ abstract class TextSelectionGestureDetectorBuilderDelegate {
|
|||
///
|
||||
/// The class implements sensible defaults for many user interactions
|
||||
/// with an [EditableText] (see the documentation of the various gesture handler
|
||||
/// methods, e.g. [onTapDown], [onFrocePress], etc.). Subclasses of
|
||||
/// methods, e.g. [onTapDown], [onForcePress], etc.). Subclasses of
|
||||
/// [EditableTextSelectionHandlesProvider] can change the behavior performed in
|
||||
/// responds to these gesture events by overriding the corresponding handler
|
||||
/// methods of this class.
|
||||
|
|
|
@ -819,7 +819,7 @@ void main() {
|
|||
debugSemanticsDisableAnimations = null;
|
||||
});
|
||||
|
||||
test('AnimationBehavior.normal runs "faster" whan AnimationBehavior.preserve', () {
|
||||
test('AnimationBehavior.normal runs "faster" than AnimationBehavior.preserve', () {
|
||||
debugSemanticsDisableAnimations = true;
|
||||
final AnimationController controller = AnimationController(
|
||||
vsync: const TestVSync(),
|
||||
|
|
|
@ -125,7 +125,7 @@ void main() {
|
|||
];
|
||||
}
|
||||
|
||||
test('Ellastic overshoots its bounds', () {
|
||||
test('Elastic overshoots its bounds', () {
|
||||
expect(Curves.elasticIn, hasOneLineDescription);
|
||||
expect(Curves.elasticOut, hasOneLineDescription);
|
||||
expect(Curves.elasticInOut, hasOneLineDescription);
|
||||
|
|
|
@ -238,7 +238,7 @@ void main() {
|
|||
expect(find.byType(DependentWidget), paints..rect(color: color0));
|
||||
expect(find.byType(DependentWidget), isNot(paints..rect(color: color1)));
|
||||
|
||||
// CupertinoTheme should take percedence over MediaQuery.
|
||||
// CupertinoTheme should take precedence over MediaQuery.
|
||||
await tester.pumpWidget(
|
||||
const CupertinoTheme(
|
||||
data: CupertinoThemeData(brightness: Brightness.light),
|
||||
|
@ -318,7 +318,7 @@ void main() {
|
|||
expect(tester.takeException()?.toString(), contains('does not contain a CupertinoUserInterfaceLevel'));
|
||||
});
|
||||
|
||||
testWidgets('Dynamic color with all 3 depedencies works', (WidgetTester tester) async {
|
||||
testWidgets('Dynamic color with all 3 dependencies works', (WidgetTester tester) async {
|
||||
const Color dynamicRainbowColor1 = CupertinoDynamicColor(
|
||||
color: color0,
|
||||
darkColor: color1,
|
||||
|
|
|
@ -275,7 +275,7 @@ void main() {
|
|||
expect(count, 0x010101);
|
||||
});
|
||||
|
||||
testWidgets('Theme active color can be overriden', (WidgetTester tester) async {
|
||||
testWidgets('Theme active color can be overridden', (WidgetTester tester) async {
|
||||
count = 0x000000;
|
||||
await tester.pumpWidget(
|
||||
CupertinoApp(
|
||||
|
|
|
@ -1410,7 +1410,7 @@ void main() {
|
|||
);
|
||||
|
||||
// Drag the content down far enough so that
|
||||
// geometry.paintExent > constraints.maxPaintExtent
|
||||
// geometry.paintExtent > constraints.maxPaintExtent
|
||||
await tester.dragFrom(const Offset(10, 10), const Offset(0, 500));
|
||||
await tester.pump();
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ void main() {
|
|||
expect(tester.getSize(find.byType(Container)).height, 600.0);
|
||||
});
|
||||
|
||||
testWidgets('Contents bottom padding are not consumed by viewInsets when resizeToAvoidBottomInset overriden', (WidgetTester tester) async {
|
||||
testWidgets('Contents bottom padding are not consumed by viewInsets when resizeToAvoidBottomInset overridden', (WidgetTester tester) async {
|
||||
const Widget child = CupertinoPageScaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
navigationBar: CupertinoNavigationBar(
|
||||
|
|
|
@ -432,7 +432,7 @@ void main() {
|
|||
4: Text('Child 5'),
|
||||
};
|
||||
|
||||
// Child 3 is intially selected.
|
||||
// Child 3 is initially selected.
|
||||
groupValue = 2;
|
||||
|
||||
await tester.pumpWidget(
|
||||
|
|
|
@ -407,7 +407,7 @@ void main() {
|
|||
expect(MediaQuery.of(innerContext).padding.bottom, 0);
|
||||
});
|
||||
|
||||
testWidgets('Tab contents are not inset when resizeToAvoidBottomInset overriden', (WidgetTester tester) async {
|
||||
testWidgets('Tab contents are not inset when resizeToAvoidBottomInset overridden', (WidgetTester tester) async {
|
||||
BuildContext innerContext;
|
||||
|
||||
await tester.pumpWidget(
|
||||
|
@ -434,7 +434,7 @@ void main() {
|
|||
expect(MediaQuery.of(innerContext).padding.bottom, 50);
|
||||
});
|
||||
|
||||
testWidgets('Tab contents bottom padding are not consumed by viewInsets when resizeToAvoidBottomInset overriden', (WidgetTester tester) async {
|
||||
testWidgets('Tab contents bottom padding are not consumed by viewInsets when resizeToAvoidBottomInset overridden', (WidgetTester tester) async {
|
||||
final Widget child = Localizations(
|
||||
locale: const Locale('en', 'US'),
|
||||
delegates: const <LocalizationsDelegate<dynamic>>[
|
||||
|
|
|
@ -193,7 +193,7 @@ void main() {
|
|||
// Make sure the clipboard is empty to start.
|
||||
await Clipboard.setData(const ClipboardData(text: ''));
|
||||
|
||||
// Double tap to selet the first word.
|
||||
// Double tap to select the first word.
|
||||
const int index = 4;
|
||||
await tester.tapAt(textOffsetToPosition(tester, index));
|
||||
await tester.pump(const Duration(milliseconds: 50));
|
||||
|
|
|
@ -16,7 +16,7 @@ void main() {
|
|||
expect(json['stateful'], isFalse);
|
||||
});
|
||||
|
||||
test('StatefulElement diganostics are stateful', () {
|
||||
test('StatefulElement diagnostics are stateful', () {
|
||||
final Element element = StatefulElement(const Tooltip(message: 'foo'));
|
||||
|
||||
final Map<String, Object> json = element.toDiagnosticsNode().toJsonMap(const DiagnosticsSerializationDelegate());
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'package:vector_math/vector_math_64.dart';
|
|||
import '../flutter_test_alternative.dart';
|
||||
|
||||
void main() {
|
||||
test('wrpped HitTestResult gets HitTestEntry added to wrapping HitTestResult', () async {
|
||||
test('wrapped HitTestResult gets HitTestEntry added to wrapping HitTestResult', () async {
|
||||
final HitTestEntry entry1 = HitTestEntry(_DummyHitTestTarget());
|
||||
final HitTestEntry entry2 = HitTestEntry(_DummyHitTestTarget());
|
||||
final HitTestEntry entry3 = HitTestEntry(_DummyHitTestTarget());
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
|
|||
import 'package:flutter/gestures.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('gets local corrdinates', (WidgetTester tester) async {
|
||||
testWidgets('gets local coordinates', (WidgetTester tester) async {
|
||||
int longPressCount = 0;
|
||||
int longPressUpCount = 0;
|
||||
final List<LongPressEndDetails> endDetails = <LongPressEndDetails>[];
|
||||
|
|
|
@ -11,7 +11,7 @@ import 'package:flutter/gestures.dart';
|
|||
|
||||
void main() {
|
||||
group('Horizontal', () {
|
||||
testWidgets('gets local corrdinates', (WidgetTester tester) async {
|
||||
testWidgets('gets local coordinates', (WidgetTester tester) async {
|
||||
int dragCancelCount = 0;
|
||||
final List<DragDownDetails> downDetails = <DragDownDetails>[];
|
||||
final List<DragEndDetails> endDetails = <DragEndDetails>[];
|
||||
|
@ -262,7 +262,7 @@ void main() {
|
|||
updateDetails.clear();
|
||||
});
|
||||
|
||||
testWidgets('kTouchSlop is evaluated in the global coordinate space when roateted 45 degrees', (WidgetTester tester) async {
|
||||
testWidgets('kTouchSlop is evaluated in the global coordinate space when rotated 45 degrees', (WidgetTester tester) async {
|
||||
int dragCancelCount = 0;
|
||||
final List<DragDownDetails> downDetails = <DragDownDetails>[];
|
||||
final List<DragEndDetails> endDetails = <DragEndDetails>[];
|
||||
|
@ -339,7 +339,7 @@ void main() {
|
|||
});
|
||||
|
||||
group('Vertical', () {
|
||||
testWidgets('gets local corrdinates', (WidgetTester tester) async {
|
||||
testWidgets('gets local coordinates', (WidgetTester tester) async {
|
||||
int dragCancelCount = 0;
|
||||
final List<DragDownDetails> downDetails = <DragDownDetails>[];
|
||||
final List<DragEndDetails> endDetails = <DragEndDetails>[];
|
||||
|
@ -590,7 +590,7 @@ void main() {
|
|||
updateDetails.clear();
|
||||
});
|
||||
|
||||
testWidgets('kTouchSlop is evaluated in the global coordinate space when roateted 45 degrees', (WidgetTester tester) async {
|
||||
testWidgets('kTouchSlop is evaluated in the global coordinate space when rotated 45 degrees', (WidgetTester tester) async {
|
||||
int dragCancelCount = 0;
|
||||
final List<DragDownDetails> downDetails = <DragDownDetails>[];
|
||||
final List<DragEndDetails> endDetails = <DragEndDetails>[];
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
|
|||
import 'package:flutter/gestures.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('gets local corrdinates', (WidgetTester tester) async {
|
||||
testWidgets('gets local coordinates', (WidgetTester tester) async {
|
||||
final List<ScaleStartDetails> startDetails = <ScaleStartDetails>[];
|
||||
final List<ScaleUpdateDetails> updateDetails = <ScaleUpdateDetails>[];
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
|
|||
import 'package:flutter/gestures.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('gets local corrdinates', (WidgetTester tester) async {
|
||||
testWidgets('gets local coordinates', (WidgetTester tester) async {
|
||||
int tapCount = 0;
|
||||
int tapCancelCount = 0;
|
||||
final List<TapDownDetails> downDetails = <TapDownDetails>[];
|
||||
|
|
|
@ -376,7 +376,7 @@ void main() {
|
|||
|
||||
// Centering a title with width 700 within the 800 pixel wide test widget
|
||||
// would mean that its start edge would have to be 50. The material spec says
|
||||
// that the start edge of the title must be atleast 72.
|
||||
// that the start edge of the title must be at least 72.
|
||||
await tester.pumpWidget(buildApp());
|
||||
|
||||
final Finder title = find.byKey(titleKey);
|
||||
|
@ -431,7 +431,7 @@ void main() {
|
|||
|
||||
// Centering a title with width 700 within the 800 pixel wide test widget
|
||||
// would mean that its start edge would have to be 50. The material spec says
|
||||
// that the start edge of the title must be atleast 72.
|
||||
// that the start edge of the title must be at least 72.
|
||||
await tester.pumpWidget(buildApp());
|
||||
|
||||
final Finder title = find.byKey(titleKey);
|
||||
|
@ -1257,7 +1257,7 @@ void main() {
|
|||
expect(tester.getTopLeft(find.byKey(trailingKey)), const Offset(0.0, 100));
|
||||
|
||||
// Because the topPadding eliminates the vertical space for the
|
||||
// NavigtationToolbar within the AppBar, the toolbar is constrained
|
||||
// NavigationToolbar within the AppBar, the toolbar is constrained
|
||||
// with minHeight=maxHeight=0. The _AppBarTitle widget vertically centers
|
||||
// the title, so its Y coordinate relative to the toolbar is -kToolbarHeight / 2
|
||||
// (-28). The top of the toolbar is at (screen coordinates) y=100, so the
|
||||
|
|
|
@ -93,7 +93,7 @@ void main() {
|
|||
expect(description[10], 'type: BottomNavigationBarType.fixed');
|
||||
});
|
||||
|
||||
testWidgets('BottomNavigationBar is themable', (WidgetTester tester) async {
|
||||
testWidgets('BottomNavigationBar is themeable', (WidgetTester tester) async {
|
||||
const Color backgroundColor = Color(0xFF000001);
|
||||
const Color selectedItemColor = Color(0xFF000002);
|
||||
const Color unselectedItemColor = Color(0xFF000003);
|
||||
|
|
|
@ -376,7 +376,7 @@ void main() {
|
|||
|
||||
// The fling below must be such that the velocity estimation examines an
|
||||
// offset greater than the kTouchSlop. Too slow or too short a distance, and
|
||||
// it won't trigger. Also, it musn't be so much that it drags the bottom
|
||||
// it won't trigger. Also, it must not be so much that it drags the bottom
|
||||
// sheet off the screen, or we won't see it after we pump!
|
||||
await tester.fling(find.text('BottomSheet'), const Offset(0.0, 50.0), 2000.0);
|
||||
await tester.pump(); // drain the microtask queue (Future completion callback)
|
||||
|
|
|
@ -168,7 +168,7 @@ void main() {
|
|||
expect(material.color, modalBackgroundColor);
|
||||
});
|
||||
|
||||
testWidgets('General bottom sheet parameters take priority over modal bottom sheet-specific parameters for peristent bottom sheets', (WidgetTester tester) async {
|
||||
testWidgets('General bottom sheet parameters take priority over modal bottom sheet-specific parameters for persistent bottom sheets', (WidgetTester tester) async {
|
||||
const double modalElevation = 5.0;
|
||||
const double persistentElevation = 7.0;
|
||||
const Color modalBackgroundColor = Colors.yellow;
|
||||
|
|
|
@ -111,7 +111,7 @@ void main() {
|
|||
expect(buttonBarRect.size.width, equals(800.0));
|
||||
expect(buttonBarRect.size.height, equals(100.0));
|
||||
|
||||
// The children of [ButtonBar] are aligned by [MainAxisAligment.end] by
|
||||
// The children of [ButtonBar] are aligned by [MainAxisAlignment.end] by
|
||||
// default.
|
||||
Rect childRect;
|
||||
childRect = tester.getRect(find.byKey(child0Key));
|
||||
|
@ -218,7 +218,7 @@ void main() {
|
|||
expect(buttonBarRect.size.width, equals(800.0));
|
||||
expect(buttonBarRect.size.height, equals(100.0));
|
||||
|
||||
// The children of [ButtonBar] are aligned by [MainAxisAligment.end] by
|
||||
// The children of [ButtonBar] are aligned by [MainAxisAlignment.end] by
|
||||
// default.
|
||||
Rect childRect;
|
||||
childRect = tester.getRect(find.byKey(child0Key));
|
||||
|
@ -238,7 +238,7 @@ void main() {
|
|||
});
|
||||
});
|
||||
|
||||
group('button properies override ButtonTheme', () {
|
||||
group('button properties override ButtonTheme', () {
|
||||
|
||||
testWidgets('default button properties override ButtonTheme properties', (WidgetTester tester) async {
|
||||
BuildContext capturedContext;
|
||||
|
|
|
@ -314,7 +314,7 @@ void main() {
|
|||
await tester.pumpAndSettle();
|
||||
expect(menu, findsNothing);
|
||||
|
||||
// Same test as above execpt RTL
|
||||
// Same test as above except RTL
|
||||
await tester.pumpWidget(
|
||||
buildFrame(
|
||||
alignedDropdown: true,
|
||||
|
|
|
@ -115,7 +115,7 @@ void main() {
|
|||
expect(Focus.of(childKey.currentContext, nullOk: true).hasPrimaryFocus, isFalse);
|
||||
});
|
||||
|
||||
testWidgets('CheckoxListTile contentPadding test', (WidgetTester tester) async {
|
||||
testWidgets('CheckboxListTile contentPadding test', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
wrap(
|
||||
child: const Center(
|
||||
|
|
|
@ -922,7 +922,7 @@ void main() {
|
|||
semantics.dispose();
|
||||
});
|
||||
|
||||
testWidgets('Dismissable.confirmDismiss defers to an AlertDialog', (WidgetTester tester) async {
|
||||
testWidgets('Dismissible.confirmDismiss defers to an AlertDialog', (WidgetTester tester) async {
|
||||
final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();
|
||||
final List<int> dismissedItems = <int>[];
|
||||
|
||||
|
|
|
@ -936,7 +936,7 @@ void main() {
|
|||
),
|
||||
);
|
||||
|
||||
// Check the semantics of [ExpanIcon] for expanded panel.
|
||||
// Check the semantics of [ExpandIcon] for expanded panel.
|
||||
final Finder expandedIcon = find.descendant(
|
||||
of: find.ancestor(
|
||||
of: find.byKey(expandedKey),
|
||||
|
@ -960,7 +960,7 @@ void main() {
|
|||
label: 'Expanded',
|
||||
));
|
||||
|
||||
// Check the semantics of [ExpanIcon] for collapsed panel.
|
||||
// Check the semantics of [ExpandIcon] for collapsed panel.
|
||||
final Finder collapsedIcon = find.descendant(
|
||||
of: find.ancestor(
|
||||
of: find.byKey(collapsedKey),
|
||||
|
|
|
@ -110,14 +110,14 @@ void main() {
|
|||
lessThanOrEqualTo(maxDeltaWidth),
|
||||
reason: "The Floating Action Button's width should not change "
|
||||
'faster than $maxDeltaWidth per animation step.\n'
|
||||
'Prevous rect: $previousRect, current rect: $currentRect',
|
||||
'Previous rect: $previousRect, current rect: $currentRect',
|
||||
);
|
||||
expect(
|
||||
deltaHeight.abs(),
|
||||
lessThanOrEqualTo(maxDeltaHeight),
|
||||
reason: "The Floating Action Button's width should not change "
|
||||
'faster than $maxDeltaHeight per animation step.\n'
|
||||
'Prevous rect: $previousRect, current rect: $currentRect',
|
||||
'Previous rect: $previousRect, current rect: $currentRect',
|
||||
);
|
||||
}
|
||||
previousRect = currentRect;
|
||||
|
@ -152,7 +152,7 @@ void main() {
|
|||
'faster than $maxDeltaRotation per animation step.\n'
|
||||
'Detected deltas were: $deltas\n'
|
||||
'Previous values: $previousRotations, current values: $currentRotations\n'
|
||||
'Prevous rect: $previousRect, current rect: $currentRect',);
|
||||
'Previous rect: $previousRect, current rect: $currentRect',);
|
||||
}
|
||||
}
|
||||
previousRotations = currentRotations;
|
||||
|
|
|
@ -4049,7 +4049,7 @@ void main() {
|
|||
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// floatingLabelGeight = 12 (ahem font size 16dps * 0.75 = 12)
|
||||
// floatingLabelHeight = 12 (ahem font size 16dps * 0.75 = 12)
|
||||
// labelY = -floatingLabelHeight/2 + borderWidth/2
|
||||
expect(tester.getTopLeft(find.text('label')).dy, -4.0);
|
||||
});
|
||||
|
|
|
@ -1378,7 +1378,7 @@ void main() {
|
|||
);
|
||||
});
|
||||
|
||||
testWidgets('ListTile can be triggerd by keyboard shortcuts', (WidgetTester tester) async {
|
||||
testWidgets('ListTile can be triggered by keyboard shortcuts', (WidgetTester tester) async {
|
||||
tester.binding.focusManager.highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
|
||||
const Key tileKey = Key('ListTile');
|
||||
bool tapped = false;
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Default PageTranstionsTheme platform', (WidgetTester tester) async {
|
||||
testWidgets('Default PageTransitionsTheme platform', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(const MaterialApp(home: Text('home')));
|
||||
final PageTransitionsTheme theme = Theme.of(tester.element(find.text('home'))).pageTransitionsTheme;
|
||||
expect(theme.builders, isNotNull);
|
||||
|
@ -21,7 +21,7 @@ void main() {
|
|||
}
|
||||
});
|
||||
|
||||
testWidgets('Default PageTranstionsTheme builds a CupertionPageTransition', (WidgetTester tester) async {
|
||||
testWidgets('Default PageTransitionsTheme builds a CupertionPageTransition', (WidgetTester tester) async {
|
||||
final Map<String, WidgetBuilder> routes = <String, WidgetBuilder>{
|
||||
'/': (BuildContext context) => Material(
|
||||
child: FlatButton(
|
||||
|
@ -80,7 +80,7 @@ void main() {
|
|||
expect(findFadeUpwardsPageTransition(), findsOneWidget);
|
||||
}, variant: TargetPlatformVariant.only(TargetPlatform.android));
|
||||
|
||||
testWidgets('pageTranstionsTheme override builds a _OpenUpwardsPageTransition', (WidgetTester tester) async {
|
||||
testWidgets('PageTransitionsTheme override builds a _OpenUpwardsPageTransition', (WidgetTester tester) async {
|
||||
final Map<String, WidgetBuilder> routes = <String, WidgetBuilder>{
|
||||
'/': (BuildContext context) => Material(
|
||||
child: FlatButton(
|
||||
|
@ -120,7 +120,7 @@ void main() {
|
|||
expect(findOpenUpwardsPageTransition(), findsOneWidget);
|
||||
}, variant: TargetPlatformVariant.only(TargetPlatform.android));
|
||||
|
||||
testWidgets('pageTranstionsTheme override builds a _ZoomPageTransition', (WidgetTester tester) async {
|
||||
testWidgets('PageTransitionsTheme override builds a _ZoomPageTransition', (WidgetTester tester) async {
|
||||
final Map<String, WidgetBuilder> routes = <String, WidgetBuilder>{
|
||||
'/': (BuildContext context) => Material(
|
||||
child: FlatButton(
|
||||
|
|
|
@ -913,7 +913,7 @@ void main() {
|
|||
value: '0',
|
||||
child: Text('Item 0'),
|
||||
),
|
||||
// This menu item's height parameter specifies its minium height. The
|
||||
// This menu item's height parameter specifies its minimum height. The
|
||||
// overall height of the menu item will be 50 because the child's
|
||||
// height 40, is less than 50.
|
||||
const PopupMenuItem<String>(
|
||||
|
@ -924,7 +924,7 @@ void main() {
|
|||
child: Text('Item 1'),
|
||||
),
|
||||
),
|
||||
// This menu item's height parameter specifies its minium height, so the
|
||||
// This menu item's height parameter specifies its minimum height, so the
|
||||
// overall height of the menu item will be 75.
|
||||
const PopupMenuItem<String>(
|
||||
height: 75,
|
||||
|
|
|
@ -344,7 +344,7 @@ void main() {
|
|||
expect(tester.binding.transientCallbackCount, 0);
|
||||
});
|
||||
|
||||
testWidgets('LinearProgressIndicator with a height less than the minumum', (WidgetTester tester) async {
|
||||
testWidgets('LinearProgressIndicator with a height less than the minimum', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
const Directionality(
|
||||
textDirection: TextDirection.ltr,
|
||||
|
|
|
@ -251,7 +251,7 @@ void main() {
|
|||
expect(values.end.round(), equals(90));
|
||||
});
|
||||
|
||||
testWidgets('Range Slider thumbs can be dragged to the min and max (continous LTR)', (WidgetTester tester) async {
|
||||
testWidgets('Range Slider thumbs can be dragged to the min and max (continuous LTR)', (WidgetTester tester) async {
|
||||
RangeValues values = const RangeValues(0.3, 0.7);
|
||||
|
||||
await tester.pumpWidget(
|
||||
|
@ -298,7 +298,7 @@ void main() {
|
|||
expect(values.end, equals(1));
|
||||
});
|
||||
|
||||
testWidgets('Range Slider thumbs can be dragged to the min and max (continous RTL)', (WidgetTester tester) async {
|
||||
testWidgets('Range Slider thumbs can be dragged to the min and max (continuous RTL)', (WidgetTester tester) async {
|
||||
RangeValues values = const RangeValues(0.3, 0.7);
|
||||
|
||||
await tester.pumpWidget(
|
||||
|
@ -445,7 +445,7 @@ void main() {
|
|||
expect(values.start, equals(0));
|
||||
});
|
||||
|
||||
testWidgets('Range Slider thumbs can be dragged together and the start thumb can be dragged apart (continous LTR)', (WidgetTester tester) async {
|
||||
testWidgets('Range Slider thumbs can be dragged together and the start thumb can be dragged apart (continuous LTR)', (WidgetTester tester) async {
|
||||
RangeValues values = const RangeValues(0.3, 0.7);
|
||||
|
||||
await tester.pumpWidget(
|
||||
|
@ -498,7 +498,7 @@ void main() {
|
|||
expect(values.start, closeTo(0.2, 0.05));
|
||||
});
|
||||
|
||||
testWidgets('Range Slider thumbs can be dragged together and the start thumb can be dragged apart (continous RTL)', (WidgetTester tester) async {
|
||||
testWidgets('Range Slider thumbs can be dragged together and the start thumb can be dragged apart (continuous RTL)', (WidgetTester tester) async {
|
||||
RangeValues values = const RangeValues(0.3, 0.7);
|
||||
|
||||
await tester.pumpWidget(
|
||||
|
@ -663,7 +663,7 @@ void main() {
|
|||
expect(values.start, closeTo(20, 0.01));
|
||||
});
|
||||
|
||||
testWidgets('Range Slider thumbs can be dragged together and the end thumb can be dragged apart (continous LTR)', (WidgetTester tester) async {
|
||||
testWidgets('Range Slider thumbs can be dragged together and the end thumb can be dragged apart (continuous LTR)', (WidgetTester tester) async {
|
||||
RangeValues values = const RangeValues(0.3, 0.7);
|
||||
|
||||
await tester.pumpWidget(
|
||||
|
@ -716,7 +716,7 @@ void main() {
|
|||
expect(values.end, closeTo(0.8, 0.05));
|
||||
});
|
||||
|
||||
testWidgets('Range Slider thumbs can be dragged together and the end thumb can be dragged apart (continous RTL)', (WidgetTester tester) async {
|
||||
testWidgets('Range Slider thumbs can be dragged together and the end thumb can be dragged apart (continuous RTL)', (WidgetTester tester) async {
|
||||
RangeValues values = const RangeValues(0.3, 0.7);
|
||||
|
||||
await tester.pumpWidget(
|
||||
|
|
|
@ -43,7 +43,7 @@ void main() {
|
|||
expect(find.byType(Scrollbar), paints..rect(rect: const Rect.fromLTRB(0.0, 1.5, 6.0, 91.5)));
|
||||
});
|
||||
|
||||
testWidgets('workds with MaterialApp and Scaffold', (WidgetTester tester) async {
|
||||
testWidgets('works with MaterialApp and Scaffold', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(MaterialApp(
|
||||
home: MediaQuery(
|
||||
data: const MediaQueryData(
|
||||
|
|
|
@ -270,7 +270,7 @@ void main() {
|
|||
expect(textField.focusNode.hasFocus, isFalse);
|
||||
});
|
||||
|
||||
testWidgets('Fresh search allways starts with empty query', (WidgetTester tester) async {
|
||||
testWidgets('Fresh search always starts with empty query', (WidgetTester tester) async {
|
||||
final _TestSearchDelegate delegate = _TestSearchDelegate();
|
||||
|
||||
await tester.pumpWidget(TestHomePage(
|
||||
|
|
|
@ -859,7 +859,7 @@ void main() {
|
|||
//
|
||||
// The value indicator can be skipped by passing the appropriate
|
||||
// [ShowValueIndicator].
|
||||
testWidgets('The slider can skip all of its comoponent painting', (WidgetTester tester) async {
|
||||
testWidgets('The slider can skip all of its component painting', (WidgetTester tester) async {
|
||||
// Pump a slider with all shapes skipped.
|
||||
await tester.pumpWidget(_buildApp(
|
||||
ThemeData().sliderTheme.copyWith(
|
||||
|
|
|
@ -603,7 +603,7 @@ void main() {
|
|||
// Make sure the clipboard is empty to start.
|
||||
await Clipboard.setData(const ClipboardData(text: ''));
|
||||
|
||||
// Double tap to selet the first word.
|
||||
// Double tap to select the first word.
|
||||
const int index = 4;
|
||||
await tester.tapAt(textOffsetToPosition(tester, index));
|
||||
await tester.pump(const Duration(milliseconds: 50));
|
||||
|
|
|
@ -155,7 +155,7 @@ void main() {
|
|||
expect(raw.disabledElevation, 0.0);
|
||||
expect(raw.constraints, defaultButtonConstraints);
|
||||
expect(raw.padding, defaultButtonPadding);
|
||||
// animationDuration can't be configed by the theme/constructor
|
||||
// animationDuration can't be configured by the theme/constructor
|
||||
expect(raw.materialTapTargetSize, MaterialTapTargetSize.padded);
|
||||
});
|
||||
|
||||
|
@ -182,7 +182,7 @@ void main() {
|
|||
expect(raw.disabledElevation, 0.0);
|
||||
expect(raw.constraints, defaultButtonConstraints);
|
||||
expect(raw.padding, defaultButtonPadding);
|
||||
// animationDuration can't be configed by the theme/constructor
|
||||
// animationDuration can't be configured by the theme/constructor
|
||||
expect(raw.materialTapTargetSize, MaterialTapTargetSize.padded);
|
||||
});
|
||||
|
||||
|
@ -209,7 +209,7 @@ void main() {
|
|||
expect(raw.disabledElevation, 0.0);
|
||||
expect(raw.constraints, defaultButtonConstraints);
|
||||
expect(raw.padding, defaultButtonPadding);
|
||||
// animationDuration can't be configed by the theme/constructor
|
||||
// animationDuration can't be configured by the theme/constructor
|
||||
expect(raw.materialTapTargetSize, MaterialTapTargetSize.padded);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -534,7 +534,7 @@ void main() {
|
|||
// sourceRect should contain all pixels of the source image
|
||||
expect(call.positionalArguments[1], Offset.zero & imageSize);
|
||||
|
||||
// Image should be scaled down to fit in hejght
|
||||
// Image should be scaled down to fit in height
|
||||
// and be positioned in the bottom right of the outputRect
|
||||
const Size expectedTileSize = Size(20.0, 20.0);
|
||||
final Rect expectedTileRect = Rect.fromPoints(
|
||||
|
|
|
@ -54,7 +54,7 @@ void main() {
|
|||
expect(logo.margin, EdgeInsets.lerp(start.margin, end.margin, 0.5));
|
||||
});
|
||||
|
||||
test('FlutterLogoDecorationl.lerpFrom and FlutterLogoDecorationl.lerpTo', () {
|
||||
test('FlutterLogoDecoration.lerpFrom and FlutterLogoDecoration.lerpTo', () {
|
||||
expect(Decoration.lerp(start, const BoxDecoration(), 0.0), start);
|
||||
expect(Decoration.lerp(start, const BoxDecoration(), 1.0), const BoxDecoration());
|
||||
expect(Decoration.lerp(const BoxDecoration(), end, 0.0), const BoxDecoration());
|
||||
|
|
|
@ -212,8 +212,8 @@ void main() {
|
|||
.addListener(ImageStreamListener(
|
||||
(ImageInfo image, bool synchronousCall) { },
|
||||
onError: (dynamic exception, StackTrace stackTrace) {
|
||||
final bool evicationResult = imageCache.evict(1);
|
||||
expect(evicationResult, isTrue);
|
||||
final bool evictionResult = imageCache.evict(1);
|
||||
expect(evictionResult, isTrue);
|
||||
},
|
||||
));
|
||||
});
|
||||
|
|
|
@ -124,7 +124,7 @@ void main() {
|
|||
expect(layer.find<int>(const Offset(100.0, 100.0)), 1);
|
||||
});
|
||||
|
||||
test('handles non-invertable transforms', () {
|
||||
test('handles non-invertible transforms', () {
|
||||
final AnnotatedRegionLayer<int> child = AnnotatedRegionLayer<int>(1);
|
||||
final TransformLayer parent = TransformLayer(transform: Matrix4.diagonal3Values(0.0, 1.0, 1.0));
|
||||
parent.append(child);
|
||||
|
@ -274,7 +274,7 @@ void main() {
|
|||
expect(layer.findAllAnnotations<int>(const Offset(100.0, 100.0)).annotations.toList(), equals(<int>[1]));
|
||||
});
|
||||
|
||||
test('handles non-invertable transforms', () {
|
||||
test('handles non-invertible transforms', () {
|
||||
final AnnotatedRegionLayer<int> child = AnnotatedRegionLayer<int>(1);
|
||||
final TransformLayer parent = TransformLayer(transform: Matrix4.diagonal3Values(0.0, 1.0, 1.0));
|
||||
parent.append(child);
|
||||
|
|
|
@ -378,7 +378,7 @@ void main() {
|
|||
expect(unconstrained.getMaxIntrinsicWidth(100.0), equals(200.0));
|
||||
});
|
||||
|
||||
test ('getMinInstrinsicWidth error handling', () {
|
||||
test ('getMinIntrinsicWidth error handling', () {
|
||||
final RenderUnconstrainedBox unconstrained = RenderUnconstrainedBox(
|
||||
textDirection: TextDirection.ltr,
|
||||
child: RenderConstrainedBox(
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue