smooth_gradient 0.0.1 smooth_gradient: ^0.0.1 copied to clipboard
A package that allows you to create gradients that use a specific curve.
flutter_smooth_gradient #
flutter_smooth_gradient
is a package that allows you to create linear gradients that use a specific curve.
Status | Comments |
---|---|
Current stable Flutter version | |
Current beta Flutter version | |
The oldest supported Flutter version |
Getting started #
- Add this package to your dependencies.
dependencies:
smooth_gradient: latest_version
- 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.