Created
May 28, 2019 03:16
-
-
Save felangel/db82686d8e8704d9ecff130fae5b60af to your computer and use it in GitHub Desktop.
[flutter_timer] Background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:wave/wave.dart'; | |
import 'package:wave/config.dart'; | |
class Background extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return WaveWidget( | |
config: CustomConfig( | |
gradients: [ | |
[ | |
Color.fromRGBO(72, 74, 126, 1), | |
Color.fromRGBO(125, 170, 206, 1), | |
Color.fromRGBO(184, 189, 245, 0.7) | |
], | |
[ | |
Color.fromRGBO(72, 74, 126, 1), | |
Color.fromRGBO(125, 170, 206, 1), | |
Color.fromRGBO(172, 182, 219, 0.7) | |
], | |
[ | |
Color.fromRGBO(72, 73, 126, 1), | |
Color.fromRGBO(125, 170, 206, 1), | |
Color.fromRGBO(190, 238, 246, 0.7) | |
], | |
], | |
durations: [19440, 10800, 6000], | |
heightPercentages: [0.03, 0.01, 0.02], | |
gradientBegin: Alignment.bottomCenter, | |
gradientEnd: Alignment.topCenter, | |
), | |
size: Size(double.infinity, double.infinity), | |
waveAmplitude: 25, | |
backgroundColor: Colors.blue[50], | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment