gradient_box_decoration 0.1.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 3

flutter_gradient_box_decoration #

A Flutter plugin for iOS and Android for Liner box gradient decoration with 300+ different color combination.

Feedback and Pull Requests are most welcome!

Installation #

Add to pubspec.yaml.

dependencies:
  ...
  gradient_box_decoration: ^0.1.4

How to use. #

import custom_gradient.dart

import 'package:gradient_box_decoration/src/custom_gradient.dart';

Usage Example. #

import 'package:flutter/material.dart';
import 'package:gradient_box_decoration/src/custom_gradient.dart';

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

class MyApp extends StatelessWidget {
  /// 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: CustomGradient.decoratedGradient(
            orientation: CustomGradient.ORIENTATION_HORIZONTAL,
            gradientType: CustomGradient.GRADIENT_TYPE_AMIN),
      ),
    );
  }
}

Gradient Orientation. #

CustomGradient.ORIENTATION_HORIZONTAL CustomGradient.ORIENTATION_VERTICAL

Gradient Type (300+ Type are available). #

Here is Some Examples.

CustomGradient.GRADIENT_TYPE_GRADE_GREY. CustomGradient.GRADIENT_TYPE_PIGGY_PINK. CustomGradient.GRADIENT_TYPE_COOL_BLUES. CustomGradient.GRADIENT_TYPE_MEGATRON. CustomGradient.GRADIENT_TYPE_MOONLIT_ASTEROID. CustomGradient.GRADIENT_TYPE_JSHINE. CustomGradient.GRADIENT_TYPE_EVENING_SUNSHINE. CustomGradient.GRADIENT_TYPE_DARK_OCEAN. CustomGradient.GRADIENT_TYPE_COOL_SKY. CustomGradient.GRADIENT_TYPE_YODA. CustomGradient.GRADIENT_TYPE_MEMARIANI.

0.1.4 #

  • Update README.

0.1.3 #

  • Some Gradient not working issue fixed

0.1.2 #

  • Change Method Name
  • Fix bug

0.1.1 #

  • Update README

0.1.0 #

  • Ready to use
  • Added 300+ Gradients

0.0.4 #

  • Finalize features.

0.0.3 #

  • Fix bugs.

0.0.2 #

  • Test build.

0.0.1 #

  • Initial build for library.

example/main.dart

import 'package:flutter/material.dart';
import 'package:gradient_box_decoration/src/custom_gradient.dart';

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

class MyApp extends StatelessWidget {
  /// 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: CustomGradient.decoratedGradient(
            orientation: CustomGradient.ORIENTATION_HORIZONTAL,
            gradientType: CustomGradient.GRADIENT_TYPE_AMIN),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  gradient_box_decoration: ^0.1.4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:gradient_box_decoration/gradient_box_decoration.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
7
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
3
Learn more about scoring.

This package is not analyzed, because it is discontinued.

Health issues and suggestions

Document public APIs. (-1 points)

340 out of 340 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0