aloisdeniel / aloisdeniel/figma_squircle

Wrapping with Opacity widget makes it work broken

Aperta
#1 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
163
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi, love this package!

However, I've encountered a bug. I'm using it as border of a MaterialButton.

> MaterialButton(
> elevation: 0,
> shape: SmoothRectangleBorder(
> side: BorderSide(color: Colors.white, width: 4),
> borderRadius: SmoothBorderRadius(
> cornerRadius: 16,
> cornerSmoothing: 1.0,
> ),
> ),
> color: lightestColor.withOpacity(0.3)...

When I wrap it with Opacity widget, there is an error on the corners as following photo shows. (Bottom one is wrapped with Opacity) (Even if the opacity is given as "0.99", it happens.)

![IMG_2C2865CFE7C8-1](https://user-images.githubusercontent.com/13528014/132346318-44e8572d-59a2-4bb6-9e2a-9b93c69d47a9.jpeg)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.