Skip to content

Commit 999c136

Browse files
committed
fix: spacePaddingBlockDefault in controlItem
1 parent aadfedb commit 999c136

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ouds_core/lib/components/control/ouds_control_item.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class OudsControlItemState extends State<OudsControlItem> {
143143
state: interactionState,
144144
child: Padding(
145145
padding: EdgeInsetsDirectional.symmetric(
146-
horizontal: OudsTheme.of(context).componentsTokens(context).controlItem.spacePaddingBlock,
146+
horizontal: OudsTheme.of(context).componentsTokens(context).controlItem.spacePaddingBlockDefault,
147147
),
148148
child: Stack(
149149
children: [
@@ -163,14 +163,14 @@ class OudsControlItemState extends State<OudsControlItem> {
163163
child: InkWell(
164164
onTap: !widget.readOnly
165165
? () {
166-
interactionState.setPressed(true);
167-
// Added to improve visual rendering fluidity by allowing Flutter
168-
// to complete the current frame before executing the state change logic.
169-
SchedulerBinding.instance.addPostFrameCallback((_) {
170-
widget.onTap?.call();
171-
interactionState.setPressed(false);
172-
});
173-
}
166+
interactionState.setPressed(true);
167+
// Added to improve visual rendering fluidity by allowing Flutter
168+
// to complete the current frame before executing the state change logic.
169+
SchedulerBinding.instance.addPostFrameCallback((_) {
170+
widget.onTap?.call();
171+
interactionState.setPressed(false);
172+
});
173+
}
174174
: null,
175175
onHighlightChanged: widget.onTap != null ? interactionState.setPressed : null,
176176
onHover: interactionState.setHovered,
@@ -179,7 +179,7 @@ class OudsControlItemState extends State<OudsControlItem> {
179179
splashColor: Colors.transparent,
180180
child: Padding(
181181
padding: EdgeInsetsDirectional.all(
182-
OudsTheme.of(context).componentsTokens(context).controlItem.spacePaddingBlock,
182+
OudsTheme.of(context).componentsTokens(context).controlItem.spacePaddingBlockDefault,
183183
),
184184
child: IntrinsicHeight(
185185
child: Row(

0 commit comments

Comments
 (0)