linear_gradient 0.1.12

Flutter Android iOS web

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);
}
2
likes
100
pub points
70%
popularity

Publisher

technoprashant.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