mirrored_repositories/pizza-animation/lib
import 'package:pizza_animation/services/size_config.dart';
import 'package:flutter/material.dart';

class SpendsContainer extends StatelessWidget {
  final Animation<double> spendContainerOpacity;
  const SpendsContainer({
    Key? key,
    required this.spendContainerOpacity,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: FadeTransition(
        opacity: spendContainerOpacity,
        child: SingleChildScrollView(
          child: Container(
            width: double.infinity,
            padding: EdgeInsets.only(
              left: 20.toWidth,
              right: 20.toWidth,
            ),
            // color: Colors.red,
            child: Column(
              mainAxisAlignment: MainAxisAlignment.start,
              children: [
                Container(
                  height: 30.toHeight,
                  child: Row(
                    crossAxisAlignment: CrossAxisAlignment.center,
                    children: [
                      Container(
                        child: Text(
                          "Spends",
                          style: TextStyle(
                            fontFamily: "Montserrat",
                            fontSize: 22.toFont,
                          ),
                        ),
                      ),
                      Expanded(
                        child: Container(
                          margin: EdgeInsets.only(left: 10.toWidth),
                          height: 2.toHeight,
                          color: Colors.grey[300],
                        ),
                      )
                    ],
                  ),
                ),
                Row(
                  children: [
                    Expanded(child: Image.asset("assets/limit.png"), flex: 2),
                    Expanded(
                        child: Image.asset("assets/this-week.png"), flex: 2),
                  ],
                ),
                Image.asset("assets/peek.png")
              ],
            ),
          ),
        ),
      ),
    );
  }
}
