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

Gradient background #61

Closed
xOldeVx opened this issue Aug 30, 2023 · 4 comments
Closed

Gradient background #61

xOldeVx opened this issue Aug 30, 2023 · 4 comments

Comments

@xOldeVx
Copy link

xOldeVx commented Aug 30, 2023

Very useful package!
Please add a feature to gradient background (like in Container widget)

Tnx!

@vizhan-lanars
Copy link
Collaborator

Hi
You could create and pass to the function your own widget, couldn't you?

@xOldeVx
Copy link
Author

xOldeVx commented Sep 12, 2023

Sorry but i didn't get you, here's an example of my implement

  showTopSnackBar(
    Overlay.of(context),
    CustomSnackBar.info(
      message: "Welcome back",
      backgroundColor: Colors.blue,
      icon: SizedBox(),
      boxShadow: [BoxShadow(color: Colors.black45, spreadRadius: 1, blurRadius: 5)],
    ),
    animationDuration: const Duration(milliseconds: 1200),
    displayDuration: const Duration(milliseconds: 2000),
    reverseAnimationDuration: const Duration(milliseconds: 250),
    curve: Curves.fastLinearToSlowEaseIn,
  );

as you can see there's no gradient option, only 1 single color (backgroundColor)

@vizhan-lanars
Copy link
Collaborator

Instead of widget

CustomSnackBar.info(
      message: "Welcome back",
      backgroundColor: Colors.blue,
      icon: SizedBox(),
      boxShadow: [BoxShadow(color: Colors.black45, spreadRadius: 1, blurRadius: 5)],
    ),

You could create your own widget

@xOldeVx
Copy link
Author

xOldeVx commented Sep 12, 2023

ohh got you! ill check it out thanks!!

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

2 participants