Sign In

Flutter Gradient Generator

Visually generate beautiful linear and radial gradients and instantly export exact code for Flutter.

CSS Gradient Builder

Presets:
LinearGradient(
  begin: Alignment(-1.00, 0.00),
  end: Alignment(1.00, 0.00),
  colors: [
    Color(0xFF3B82F6),
    Color(0xFF8B5CF6)
  ],
)
deg
Angle360°

Color Stops

HEX

The Ultimate Flutter Gradient Generator

Gradients are a fundamental design element used to create vibrant backgrounds, text effects, and depth. However, translating a simple CSS gradient (like linear-gradient(135deg, blue, red)) into native mobile code requires complex trigonometry to convert the angle into starting and ending Alignment vectors. This generator does that math for you, outputting precise code for Flutter.

Whether you are building a modern web application or a cross-platform mobile app, achieving the perfect color transition is essential for a premium user interface. WhiteArray's visual builder allows you to drag, drop, and rotate gradient stops intuitively. Once you're satisfied with the design, our engine instantly compiles the visual representation into production-ready code.

Gradients in Flutter

Flutter provides excellent built-in support for both LinearGradient and RadialGradient within the BoxDecoration class. Flutter uses an Alignment(x, y) coordinate system ranging from -1.0 to 1.0 (where 0,0 is the center). This tool handles the mathematical conversion from a standard CSS degree angle to the exact Flutter Alignment offsets needed to recreate the effect perfectly.

Frequently Asked Questions

Can I copy the code directly into my Flutter project?

Yes. The output generated by this tool is strictly formatted for Flutter. Simply click the copy button and paste the code directly into your stylesheet, component, or widget.

Are radial gradients supported?

Radial gradients are fully supported for web technologies like CSS and Tailwind, as well as native frameworks like Flutter and Android Compose that natively support them.

Related Tools