smooth_gradient 0.0.1 copy "smooth_gradient: ^0.0.1" to clipboard
smooth_gradient: ^0.0.1 copied to clipboard

A package that allows you to create gradients that use a specific curve.

flutter_smooth_gradient #

Package Publisher MIT License LeanCode Style

flutter_smooth_gradient is a package that allows you to create linear gradients that use a specific curve.

Status Comments
flutter_smooth_gradient - Tests (stable) Current stable Flutter version
flutter_smooth_gradient - Tests (beta) Current beta Flutter version
flutter_smooth_gradient - Tests (3.24.0) The oldest supported Flutter version

Getting started #

  1. Add this package to your dependencies.
dependencies:
  smooth_gradient: latest_version
  1. Get the dependencies.
flutter pub get

Usage #

Replace LinearGradient with a SmoothGradient and optionally provide a curve.

return DecoratedBox(
  decoration: BoxDecoration(
    gradient: SmoothGradient(
      begin: Alignment.topCenter,
      end: Alignment.bottomCenter,
      from: Colors.black,
      to: Colors.white,
    ),
  ),
  child: const SizedBox.square(
    dimension: 100,
  ),
);

Additional information #

  • This package requires at least Flutter 3.24 to work.
  • If there are any issues feel free to go to GitHub Issues and report a bug.

Maintainers #

16
likes
0
pub points
67%
popularity

Publisher

verified publishernikodembernat.com

A package that allows you to create gradients that use a specific curve.

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #gradient #smooth #ui

License

unknown (license)

Dependencies

flutter

More

Packages that depend on smooth_gradient