Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypto Kira committed Jun 6, 2022
1 parent ffed47b commit a0de831
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 84 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ ios/Runner/GeneratedPluginRegistrant.*
.vscode
ios
android
example/.flutter-plugins-dependencies
86 changes: 41 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,53 @@
# Wave

[![Awesome: Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://stackoverflow.com/questions/tagged/flutter?sort=votes) [![pub package](https://img.shields.io/pub/v/wave.svg?style=flat-square)](https://pub.dartlang.org/packages/wave) ![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg?longCache=true&style=flat-square)
![Wave logo](/assets/wave-128.png "Wave logo")

---

[![Awesome: Flutter](https://img.shields.io/badge/⌐◨─◨-AwesomeFlutter-blue.svg?logo=flutter&longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter#effect)
[![Pub](https://img.shields.io/pub/v/wave.svg?logo=flutter&style=flat-square)](https://pub.dev/packages/wave)
![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg?longCache=true&style=flat-square)

A Flutter package for displaying waves.

## Demo

| Platform | Branch | URL |
| -: | -: | -: |
| Web | `master` | [wave.glorylab.xyz](https://wave.glorylab.xyz "The demo page of the wave package.") |
| Web | `develop` | [dev.wave.glorylab.xyz](https://dev.wave.glorylab.xyz "The demo page of the wave package's develop branch.") |


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

## Getting Started

``` Dart
static const _backgroundColor = Color(0xFFF15BB5);
static const _colors = [
Color(0xFFFEE440),
Color(0xFF00BBF9),
];
static const _durations = [
5000,
4000,
];
static const _heightPercentages = [
0.65,
0.66,
];
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,
durations: _durations,
heightPercentages: _heightPercentages,
),
colors: [
Colors.white70,
Colors.white54,
Colors.white30,
Colors.white24,
],
durations: [
32000,
21000,
18000,
5000,
],
backgroundColor: _backgroundColor,
size: Size(double.infinity, double.infinity),
waveAmplitude: 0,
heightPercentages: [0.25, 0.26, 0.28, 0.31],
backgroundImage: DecorationImage(
image: NetworkImage(
'https://images.unsplash.com/photo-1600107363560-a2a891080c31?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=672&q=80',
),
fit: BoxFit.cover,
colorFilter:
ColorFilter.mode(Colors.white, BlendMode.softLight),
),
size: Size(
double.infinity,
double.infinity,
),
),
```

## Preview

[master](https://wave.glorylab.xyz "The demo page of the wave package.")

[develop](https://dev.wave.glorylab.xyz "The demo page of the wave package's develop branch.")
```
Binary file added assets/wave-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
**/doc/api/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
Expand Down
84 changes: 46 additions & 38 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,53 @@
# example
# Wave

![Wave logo](/assets/wave-128.png "Wave logo")

---

[![Awesome: Flutter](https://img.shields.io/badge/⌐◨─◨-AwesomeFlutter-blue.svg?logo=flutter&longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter#effect)
[![Pub](https://img.shields.io/pub/v/wave.svg?logo=flutter&style=flat-square)](https://pub.dev/packages/wave)
![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg?longCache=true&style=flat-square)

A Flutter package for displaying waves.

## Demo

| Platform | Branch | URL |
| -: | -: | -: |
| Web | `master` | [wave.glorylab.xyz](https://wave.glorylab.xyz "The demo page of the wave package.") |
| Web | `develop` | [dev.wave.glorylab.xyz](https://dev.wave.glorylab.xyz "The demo page of the wave package's develop branch.") |


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

## Getting Started

``` dart
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),
),
```
``` Dart
static const _backgroundColor = Color(0xFFF15BB5);
## Preview
static const _colors = [
Color(0xFFFEE440),
Color(0xFF00BBF9),
];
[master](https://wave.glorylab.xyz "The demo page of the wave package.")
static const _durations = [
5000,
4000,
];
[develop](https://dev.wave.glorylab.xyz "The demo page of the wave package's develop branch.")
static const _heightPercentages = [
0.65,
0.66,
];
WaveWidget(
config: CustomConfig(
colors: colors,
durations: _durations,
heightPercentages: _heightPercentages,
),
backgroundColor: _backgroundColor,
size: Size(double.infinity, double.infinity),
waveAmplitude: 0,
),
```

0 comments on commit a0de831

Please sign in to comment.