mirrored_repositories/Flutter-AuthX/lib/view/sign up
import 'package:flutter/material.dart';
import '../../../res/app_color.dart';
class TextFieldSufix extends StatelessWidget {
  const TextFieldSufix({super.key, required this.icon,this.size=18});
  final IconData icon;
  final double size;
  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.symmetric(horizontal: 10,vertical: 10),
      child: Container(
        height: 40,
        width: 40,
        decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(12),
            color: darkBackgroundColor,
            boxShadow: [
              BoxShadow(
                  color: Colors.pinkAccent.withOpacity(.2),
                  offset: const Offset(1, 0)),
              BoxShadow(
                  color: Colors.pinkAccent.withOpacity(.2),
                  offset: const Offset(0, 1)),
              BoxShadow(
                  color: Colors.pinkAccent.withOpacity(.2),
                  offset: const Offset(-1, 0)),
              BoxShadow(
                  color: Colors.pinkAccent.withOpacity(.2),
                  offset: const Offset(0, -1)),
            ]),
        child:  Icon(
          icon,
          color: Colors.white70,
          size: size,
        ),
      ),
    );
  }
}
