Fix. typos (#137325)
## Description This PR fixes typos in - `actions.dart` - `app_bar.dart` - `basic.dart` - `button_bar_theme.dart`
This commit is contained in:
parent
daec48d826
commit
9e04246c48
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -565,7 +565,7 @@ abstract class ContextAction<T extends Intent> extends Action<T> {
|
||||
|
||||
/// 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<T extends Intent> = Object? Function(T intent);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user