Flutter package
Gradient Color & Styles
Gradient-aware versions of Flutter's everyday widgets, plus a library of preset gradients.
MIT
AndroidiOSLinuxmacOSWebWindows
Overview
Applying a gradient to a container is easy in Flutter; applying one consistently to text, buttons, sliders, app bars and progress indicators is not. gradient_color_and_styles wraps the widgets you already use with gradient support and a library of preset gradients, plus transforms like reversal, rotation, tinting and brightness or saturation adjustment.
Features
- Gradient containers, cards, buttons and floating action buttons
- Gradient text and icon fills
- Gradient AppBar and TabBar
- Gradient sliders, progress indicators, dividers and toggle switches
- Linear, radial and sweep gradient types
- Preset gradient library, plus reversal, rotation, tint and brightness/saturation transforms
Installation
pubspec.yaml
dependencies:
gradient_color_and_styles: ^1.0.1or
flutter pub add gradient_color_and_stylesUsage
Dart
import 'package:gradient_color_and_styles/gradient_color_and_styles.dart';
GradientContainer(
gradient: PresetGradients.sunset,
height: 100,
borderRadius: BorderRadius.circular(16),
child: Center(child: Text('Sunset Gradient')),
)Read this offline
The same write-up as a .docx file, if you'd rather share it or keep a copy.