wave 0.0.8

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 93

Wave #

Awesome: Flutter pub package GitHub

Widget for displaying waves with custom color, duration, floating and blur effects.

Getting Started #

WaveWidget(
    config: CustomConfig(
        gradients: [
            [Colors.red, Color(0xEEF44336)],
            [Colors.red[800], Color(0x77E57373)],
            [Colors.orange, Color(0x66FF9800)],
            [Colors.yellow, Color(0x55FFEB3B)]
        ],
        durations: [35000, 19440, 10800, 6000],
        heightPercentages: [0.20, 0.23, 0.25, 0.30],
        blur: MaskFilter.blur(BlurStyle.solid, 10),
        gradientBegin: Alignment.bottomLeft,
        gradientEnd: Alignment.topRight,
    ),
    colors: [
        Colors.white70,
        Colors.white54,
        Colors.white30,
        Colors.white24,
    ],
    durations: [
        32000,
        21000,
        18000,
        5000,
    ],
    waveAmplitude: 0,
    heightPercentages: [0.25, 0.26, 0.28, 0.31],
    backgroundColor: Colors.blue,
    size: Size(
        double.infinity,
        double.infinity,
    ),
),

Preview #

Normal #

demo

Solid Blur #

demo

Inner Blur #

demo

Outer Blur #

demo

Normal Blur #

demo

GIF #

demo

TODO #

  • [ ] Static mode.
  • [ ] Random mode.

CHANGELOG #

0.0.7 #

Add options of setting blur and gradient.

0.0.6 #

  • Widget for displaying a wave. Added options for custom waves and remove the image from WaveView.

example/README.md

example #

Widget for displaying waves with custom color, duration, floating and blur effects.

Getting Started #

    WaveWidget(
        config: CustomConfig(
            gradients: [
                [Colors.red, Color(0xEEF44336)],
                [Colors.red[800], Color(0x77E57373)],
                [Colors.orange, Color(0x66FF9800)],
                [Colors.yellow, Color(0x55FFEB3B)]
            ],
            durations: [35000, 19440, 10800, 6000],
            heightPercentages: [0.20, 0.23, 0.25, 0.30],
            blur: MaskFilter.blur(BlurStyle.solid, 10),
            gradientBegin: Alignment.bottomLeft,
            gradientEnd: Alignment.topRight,
        ),
        colors: [
            Colors.white70,
            Colors.white54,
            Colors.white30,
            Colors.white24,
        ],
        durations: [
            32000,
            21000,
            18000,
            5000,
        ],
        waveAmplitude: 0,
        heightPercentages: [0.25, 0.26, 0.28, 0.31],
        backgroundColor: Colors.blue,
        size: Size(double.infinity, double.infinity),
    ),

Preview #

Normal #

demo

Solid Blur #

demo

Inner Blur #

demo

Outer Blur #

demo

Normal Blur #

demo

GIF #

demo

Use this package as a library

1. Depend on it

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


dependencies:
  wave: ^0.0.8

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:wave/wave.dart';
  
Version Uploaded Documentation Archive
0.0.8 Dec 19, 2018 Go to the documentation of wave 0.0.8 Download wave 0.0.8 archive
0.0.7 Dec 4, 2018 Go to the documentation of wave 0.0.7 Download wave 0.0.7 archive
0.0.6 Dec 3, 2018 Go to the documentation of wave 0.0.6 Download wave 0.0.6 archive
0.0.5 Dec 3, 2018 Go to the documentation of wave 0.0.5 Download wave 0.0.5 archive
0.0.4 Nov 29, 2018 Go to the documentation of wave 0.0.4 Download wave 0.0.4 archive
0.0.3 Nov 29, 2018 Go to the documentation of wave 0.0.3 Download wave 0.0.3 archive
0.0.2 Nov 28, 2018 Go to the documentation of wave 0.0.2 Download wave 0.0.2 archive
0.0.1 Nov 28, 2018 Go to the documentation of wave 0.0.1 Download wave 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
90
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
93
Learn more about scoring.

We analyzed this package on Apr 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/wave.dart.

Run flutter format to format lib/wave.dart.

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test