Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot flip widget #44

Closed
adrianvintu opened this issue Aug 9, 2022 · 2 comments
Closed

Cannot flip widget #44

adrianvintu opened this issue Aug 9, 2022 · 2 comments

Comments

@adrianvintu
Copy link

Using the git example https://github.com/glorylab/wave, I am trying to flip the widget. either by flipping the card

Transform(
  transform: Matrix4.rotationY(math.pi),
  child: _buildCard(

or by flipping the control

Card(
...
  child: Transform(
    transform: Matrix4.rotationY(math.pi),
    child: WaveWidget(
      config: config,
      backgroundColor: backgroundColor,
      backgroundImage: backgroundImage,
      size: Size(double.infinity, double.infinity),
      waveAmplitude: 0,
    ),
),

Both methods fail - first method completely hides the card, the second method shows empty card.

Can you please check this?

Thank you!

@abenkdh
Copy link

abenkdh commented Feb 18, 2023

Use transform scale

Transform.scale( scaleY: -1, child: WaveWidget( ), )

@Haris2v
Copy link

Haris2v commented Oct 18, 2023

Thank you @abenkdh. Your solution worked like a charm!
@adrianvintu Maybe you should close this issue. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants