many UI improvements and subtle tweaks
This commit is contained in:
parent
9a5bfbaaf0
commit
231ed2c9df
15 changed files with 191 additions and 153 deletions
27
lib/common/widgets/animatedGradientButton.dart
Normal file
27
lib/common/widgets/animatedGradientButton.dart
Normal file
|
@ -0,0 +1,27 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:simple_animations/simple_animations.dart';
|
||||
|
||||
class AnimatedBackground extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final tween = MultiTrackTween([
|
||||
Track("color1").add(Duration(seconds: 4),
|
||||
ColorTween(begin: Colors.lightBlue, end: Colors.lightBlue[300])),
|
||||
]);
|
||||
|
||||
return ControlledAnimation(
|
||||
playback: Playback.MIRROR,
|
||||
tween: tween,
|
||||
duration: tween.duration,
|
||||
builder: (context, animation) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [animation["color1"], Colors.lightBlue])),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
Reference in a new issue