Skip to content

Conversation

@batteredgherkin
Copy link
Collaborator

add rainbow and galaxy hair effect

@batteredgherkin batteredgherkin requested a review from ctiedt August 23, 2020 17:02
Copy link
Owner

@ctiedt ctiedt left a 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.

Comment on lines +34 to +37
shaderCallback: (Rect bounds) {
return ImageShader(snapshot.data, TileMode.clamp, TileMode.clamp,
Matrix4.identity().storage);
},
Copy link
Owner

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 {
Copy link
Owner

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),
Copy link
Owner

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

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

Successfully merging this pull request may close these issues.

3 participants