diff --git a/packages/flutter/lib/src/material/app_bar.dart b/packages/flutter/lib/src/material/app_bar.dart index 621acad146..f641f114a3 100644 --- a/packages/flutter/lib/src/material/app_bar.dart +++ b/packages/flutter/lib/src/material/app_bar.dart @@ -2252,14 +2252,14 @@ class _RenderExpandedTitleBox extends RenderShiftedBox { assert(padding.isNonNegative); assert(titleAlignment.y == 1.0); - // yAdjustement is the minimum additional y offset to shift the child in + // yAdjustment is the minimum additional y offset to shift the child in // the visible vertical space when AppBar is fully expanded. The goal is to // prevent the expanded title from being clipped when the expanded title // widget + the bottom padding is too tall to fit in the flexible space (the // top padding is basically ignored since the expanded title is // bottom-aligned). - final double yAdjustement = clampDouble(childSize.height + padding.bottom - maxExtent, 0, padding.bottom); - final double offsetY = size.height - childSize.height - padding.bottom + yAdjustement; + final double yAdjustment = clampDouble(childSize.height + padding.bottom - maxExtent, 0, padding.bottom); + final double offsetY = size.height - childSize.height - padding.bottom + yAdjustment; final double offsetX = (titleAlignment.x + 1) / 2 * (size.width - padding.horizontal - childSize.width) + padding.left; final BoxParentData childParentData = child.parentData! as BoxParentData; diff --git a/packages/flutter/lib/src/material/button_bar_theme.dart b/packages/flutter/lib/src/material/button_bar_theme.dart index 2251b940a0..b5bf1ddfb8 100644 --- a/packages/flutter/lib/src/material/button_bar_theme.dart +++ b/packages/flutter/lib/src/material/button_bar_theme.dart @@ -231,7 +231,7 @@ class ButtonBarThemeData with Diagnosticable { /// * [ButtonBarThemeData], which describes the actual configuration of a button /// bar theme. class ButtonBarTheme extends InheritedWidget { - /// Constructs a button bar theme that configures all descendent [ButtonBar] + /// Constructs a button bar theme that configures all descendant [ButtonBar] /// widgets. const ButtonBarTheme({ super.key, diff --git a/packages/flutter/lib/src/widgets/actions.dart b/packages/flutter/lib/src/widgets/actions.dart index beba13b430..2dc33da05c 100644 --- a/packages/flutter/lib/src/widgets/actions.dart +++ b/packages/flutter/lib/src/widgets/actions.dart @@ -565,7 +565,7 @@ abstract class ContextAction extends Action { /// The signature of a callback accepted by [CallbackAction.onInvoke]. /// -/// Such callbacks are implementions of [Action.invoke]. The returned value +/// Such callbacks are implementations of [Action.invoke]. The returned value /// is the return value of [Action.invoke], the argument is the intent passed /// to [Action.invoke], and so forth. typedef OnInvokeCallback = Object? Function(T intent); diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index f565298710..b4aa4d84df 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -5588,7 +5588,7 @@ class Wrap extends MultiChildRenderObjectWidget { /// /// ## Hit testing and hidden [Flow] widgets /// -/// The [Flow] widget recomputers its children's positions (as used by hit +/// The [Flow] widget recomputes its children's positions (as used by hit /// testing) during the _paint_ phase rather than during the _layout_ phase. /// /// Widgets like [Opacity] avoid painting their children when those children