mirrored_repositories/Serene/lib/sunshine/components
import 'package:flutter/widgets.dart';

class SunRays extends AnimatedWidget {
  SunRays({this.controller}) : super(listenable: controller);

  final AnimationController controller;

  @override
  Widget build(BuildContext context) {
    return Transform.translate(
      offset: controller
          .drive(
            Tween<Offset>(
              begin: Offset(0, 0),
              end: Offset(0, -150),
            ),
          )
          .value,
      child: FadeTransition(
        opacity: controller,
        child: Container(
          decoration: BoxDecoration(
            shape: BoxShape.circle,
            gradient: RadialGradient(
              colors: [
                const Color(0xFFf9c87e),
                const Color(0xEEf4aa85),
                const Color(0x00f4aa85),
              ],
              stops: [0.3, 0.55, 1],
            ),
          ),
        ),
      ),
    );
  }
}
