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

PlusSigns Pattern not working. #2

Open
EmmanuelAmodu opened this issue Jan 9, 2020 · 0 comments
Open

PlusSigns Pattern not working. #2

EmmanuelAmodu opened this issue Jan 9, 2020 · 0 comments

Comments

@EmmanuelAmodu
Copy link

Hi, I am trying to use the plus sign pattern but I am not sure when I am doing wrong but it is not working. Other patterns from your examples seem to work.

class Background extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(builder: (context, constraints) {
      final pattern = PlusSigns(
        fillColors: [pacificBlue, cobalt, pacificBlue, cobalt, pacificBlue, cobalt, pacificBlue, cobalt],
        nx: 2,
        ny: 4,
        side: 2,
        strokeColor: pacificBlue,
      );
      return CustomPaint(
          size: Size(MediaQuery.of(context).size.width, MediaQuery.of(context).size.height - 471),
          painter: FullPainter(pattern: pattern, background: pacificBlue));
    });
  }
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

1 participant