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

ClipBehavior cannot be none #361

Closed
iJack93 opened this issue Jul 10, 2022 · 14 comments
Closed

ClipBehavior cannot be none #361

iJack93 opened this issue Jul 10, 2022 · 14 comments

Comments

@iJack93
Copy link

iJack93 commented Jul 10, 2022

Goodmorning,

I love your library and you're doing a great job with it!
Just to let you know: I've noticed that in your custom SizeTransition class at line 147 there is the following operation to not clip when the sizeFactor is 1:

clipBehavior: value == 1 ? Clip.none : Clip.hardEdge,

Setting the clipBehavior to none will cause the application to crash because the assert at line 680 of the flutter (package:flutter/src/widgets/basic.dart:680:12) will fail.
It is also stated in the ClipRect -> clipBehavior property documentation that the clipBehavior cannot be set to none or null.

I think that the solution is to leave the clipBehavior property to "hardEdge" or find another solution.

Glad to help and sorry if I did not meed the GitHub guidelines.
Thanks for the attention to this issue and keep doing a great job with this library!

@lwd369
Copy link

lwd369 commented Jul 11, 2022

I've encountered the same issue.

@sara010
Copy link

sara010 commented Jul 12, 2022

Another exception was thrown: 'package:flutter/src/widgets/basic.dart': Failed assertion: line 680 pos 12: 'clipBehavior != Clip.none': is not true.

@Addadahine91
Copy link

Addadahine91 commented Jul 12, 2022

Also getting this issue. Per the documentation, clipBehaviour must not be set to null or Clip.none - it defaults to Clip.hardEdge

https://api.flutter.dev/flutter/widgets/ClipRect/clipBehavior.html

@ushodmonov
Copy link

I've encountered the same issue.

@saigopin
Copy link

i am also getting same issue.

@arjunkn
Copy link

arjunkn commented Jul 13, 2022

Cannot even run simple example because of this issue

@schigabiga
Copy link

schigabiga commented Jul 13, 2022

i am also getting the same issue.
With version: 1.3.0 it's working fine.

dependencies:
  flutter_slidable: 1.3.0

@lilongcnc
Copy link

i am also getting the same issue

@RobertoMdz
Copy link

The same issue here
Captura de Pantalla 2022-07-13 a la(s) 15 30 28

@ChalermchaiPohek
Copy link

i am also getting the same issue. With version: 1.3.0 it's working fine.

dependencies:
  flutter_slidable: 1.3.0

This solution is work, for me.

@letsar
Copy link
Owner

letsar commented Jul 14, 2022

Which version of flutter do you use? Seems to be ok with Flutter 3.0 (#95593). Maybe I should upgrade the SDK constraints

@Addadahine91
Copy link

Addadahine91 commented Jul 14, 2022 via email

@CaoGiaHieu-dev
Copy link

any update ?? im using flutter 2.8.1

@letsar
Copy link
Owner

letsar commented Jul 14, 2022

any update ?? im using flutter 2.8.1

I've just answered 12 minutes ago!!!

@letsar letsar closed this as completed in 0032081 Jul 14, 2022
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