Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

updated blend mode when padding 0 #34

Merged
merged 1 commit into from
Jan 2, 2022

Conversation

SandroMaglione
Copy link
Owner

Fixes #32

The issue occurred when padding: 0, gradient applied, and roundedEgde applied. It was causes by blendMode.

Example:

class GradientRoundedEdge extends StatelessWidget {
  const GradientRoundedEdge({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
          child: Padding(
        padding: const EdgeInsets.all(50.0),
        child: Column(
          children: [
            Container(
              color: Colors.grey[600],
              padding: const EdgeInsets.all(10),
              child: const StepProgressIndicator(
                totalSteps: 100,
                currentStep: 40,
                size: 30,
                padding: 0,
                roundedEdges: Radius.circular(100),
                selectedGradientColor: LinearGradient(
                  begin: Alignment.topLeft,
                  end: Alignment.bottomRight,
                  colors: [
                    Color(0XFFFFE2CD),
                    Color(0XFFFEC2E7),
                    Color(0XFFC9E7FF),
                    Color(0XFF86FEF4),
                  ],
                ),
                unselectedGradientColor: LinearGradient(
                  begin: Alignment.topLeft,
                  end: Alignment.bottomRight,
                  colors: [
                    Color(0XFF171C21),
                    Colors.black,
                  ],
                ), // Needed
              ),
            ),
          ],
        ),
      )),
    );
  }
}

Screenshot 2022-01-02 at 17 11 38

@SandroMaglione SandroMaglione merged commit 803794c into master Jan 2, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

roundedEdges: not working
1 participant