aron_gradient_line
1.1.2, released 2 years ago by aroncode.com
A Flutter widget that displays an animated gradient line, useful as a divider in AppBar or other UI parts.
WASM-ready
What it does
It renders a thin line whose colors animate with a gradient effect. The widget can be placed anywhere, commonly as the bottom of an AppBar. It supports a Material 3 flag to match the theme.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple animated divider without writing custom animation code
- You want a ready‑made gradient line for AppBar bottom or similar UI sections
Skip it when
- You require extensive animation control or custom shapes
- You need a non‑gradient or static divider
Strengths
- Very small API, just drop the widget
- No extra dependencies beyond Flutter
- Works on all supported platforms
Weaknesses
- Limited customization (only gradient and Material 3 flag)
- No parameters for animation speed or direction
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
AppBar(
title: Text(widget.title),
bottom: const PreferredSize(
preferredSize: Size.fromHeight(4.0),
child: AronGradientLine(
useMaterial3: true,
),
),
),Alternatives
Packages that do the same job and could replace aron_gradient_line.
Works with
Packages commonly used together with aron_gradient_line: ones it builds on, ones built on it, and its own family.