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

25 lines
777 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';
2024-03-19 13:27:42 +08:00
import 'package:sk_base_mobile/util/screen_adaper_util.dart';
2024-03-19 11:09:07 +08:00
class ChangeIconButton extends StatelessWidget {
const ChangeIconButton({super.key, required this.icon});
final Widget icon;
@override
Widget build(BuildContext context) {
return Container(
2024-03-19 13:27:42 +08:00
height: ScreenAdaper.height(60),
width: ScreenAdaper.height(60),
2024-03-19 11:09:07 +08:00
alignment: Alignment.center,
decoration:
BoxDecoration(shape: BoxShape.circle, color: neviBlue, boxShadow: [
BoxShadow(
color: neviBlue.withOpacity(.3),
2024-03-19 13:27:42 +08:00
offset: Offset(0, ScreenAdaper.height(10)),
blurRadius: ScreenAdaper.sp(10))
2024-03-19 11:09:07 +08:00
]),
child: icon,
);
}
}