-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add hair effects #18
base: master
Are you sure you want to change the base?
Add hair effects #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add ios/Flutter/flutter_export_environment.sh
to the gitignore as well.
shaderCallback: (Rect bounds) { | ||
return ImageShader(snapshot.data, TileMode.clamp, TileMode.clamp, | ||
Matrix4.identity().storage); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use arrow notation here
import 'dart:ui' as ui; | ||
import 'dart:async'; | ||
|
||
class ImageMerger extends StatelessWidget { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A class comment would be helpful. You should also rename this class to make it more obvious that it is a widget.
if (snapshot.hasData) { | ||
return ShaderMask( | ||
blendMode: blendMode, | ||
child: Container(child: blendedWidget), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Container
can probably be removed
add rainbow and galaxy hair effect