conceptadev/mix

Shouldn't the PressableBox animate when it possesses the scale attribute?

Closed this issue · 2 comments

Package version

1.0.0-beta.1

Flutter version

Flutter 3.16.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 67457e669f (9 days ago) • 2024-01-16 16:22:29 -0800
Engine • revision 6e2ea58a5c
Tools • Dart 3.2.5 • DevTools 2.28.5

Steps to reproduce

  1. Passing a scale attribute to a Style
  2. Placing this Style in the PressableBox's constructor

Expected results

Screen Recording 2024-01-25 at 17 17 54

Actual results

Screen Recording 2024-01-25 at 17 21 59

Code sample

PressableBox(
  onPressed: () {},
  style: Style(
    backgroundColor.black87(),
    width(80),
    height(50),
    alignment.center(),
    text.style.color.white(),
    scale(1),
    onHover(
      scale(2),
    ),
  ),
  child: const StyledText('Hello'),
)

This issue is correlated with #167

This issue has been fixed