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

can't convert #2

Closed
shinriyo opened this issue Apr 21, 2020 · 1 comment
Closed

can't convert #2

shinriyo opened this issue Apr 21, 2020 · 1 comment

Comments

@shinriyo
Copy link

it is gold metaric css.

background: linear-gradient(120.07deg, #FFE5C5 17.61%, #D2B38B 50.22%, #F1DDC3 83.52%);

result is below

new Container( 
  decoration: BoxDecoration(
    image: new DecorationImage(
      image: new ExactAssetImage('linear-gradient(120.07deg, rgb(255, 229, 197) 17.61%, rgb(210, 179, 139) 50.22%, rgb(241, 221, 195) 83.52%'),
      fit: BoxFit.auto,
      repeat: ImageRepeat.repeat,
    ),
  )
),

but, strange

and BoxFit.auto, is a mistake.
BoxFit.fill, is better.

@drawcall
Copy link
Owner

Oh, it's really complicated to deal with gradients. I have fixed it.

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

2 participants