/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2023-02-02 10:52:44
 * @LastEditTime : 2023-02-06 17:36:15
 * @Description  : Do not edit
 */
part of '../index.dart';

class LineCard extends StatelessWidget {
  const LineCard({
    Key? key,
    required this.child,
    required this.width,
  }) : super(key: key);
  final Widget child;
  final double width;

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        Container(
          width: width,
          decoration: BoxDecoration(
              gradient: LinearGradient(
                colors: [const Color(0x4A0074FF), Color(0x000074FF)],
                begin: Alignment.topCenter,
                end: Alignment.bottomCenter,
              ),
              borderRadius: BorderRadius.circular(12.pt),
              boxShadow: [
                BoxShadow(
                  color: Color(0x08000000),
                  offset: Offset(0, 2.pt),
                  blurRadius: 10.pt,
                  spreadRadius: 2.5.pt,
                ),
              ]),
          child: child,
        ),
        Positioned(
          top: 1.pt,
          left: 1.pt,
          child: Wisdom(
            color: Colors.white,
            width: width - 2.pt,
            borderRadius: BorderRadius.circular(12.pt),
            child: child,
          ),
        ),
      ],
    );
  }
}
