mobile_skt/lib/screens/home/components/change_icon.dart

24 lines
635 B
Dart
Raw Normal View History

2024-03-19 11:09:07 +08:00
import 'package:flutter/material.dart';
import 'package:sk_base_mobile/constants/bg_color.dart';
class ChangeIconButton extends StatelessWidget {
const ChangeIconButton({super.key, required this.icon});
final Widget icon;
@override
Widget build(BuildContext context) {
return Container(
height: 40,
width: 40,
alignment: Alignment.center,
decoration:
BoxDecoration(shape: BoxShape.circle, color: neviBlue, boxShadow: [
BoxShadow(
color: neviBlue.withOpacity(.3),
offset: Offset(0, 10),
blurRadius: 10)
]),
child: icon,
);
}
}