linear_gradient 0.1.13 copy "linear_gradient: ^0.1.13" to clipboard
linear_gradient: ^0.1.13 copied to clipboard

Linear gradient with 300+ different color combination. Also, it will options for change gradient orientation Vertical and Horizontal.

example/main.dart

import 'package:flutter/material.dart';

import '../lib/linear_gradient.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  /// This is an example app which make use of
  /// How to use `Custom Gradient Box Decoration`
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Container(
        decoration: BoxDecoration(
            gradient: LinearGradientStyle.linearGradient(
                orientation: LinearGradientStyle.ORIENTATION_HORIZONTAL,
                gradientType: LinearGradientStyle.GRADIENT_TYPE_AMIN)),
      ),
    );
  }

  /// Get Gradients color list by passing gradient type
  List<Color> colorCombination = LinearGradientStyle.getColorCombination(
      gradientType: LinearGradientStyle.GRADIENT_TYPE_ROYAL);
}
14
likes
130
pub points
66%
popularity

Publisher

verified publishertechnoprashant.me

Linear gradient with 300+ different color combination. Also, it will options for change gradient orientation Vertical and Horizontal.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on linear_gradient