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

29 lines
957 B
Dart
Raw Permalink Normal View History

2024-10-16 09:48:17 +08:00
import 'package:flutter/material.dart';
import 'package:sk_base_mobile/app_theme.dart';
import 'package:sk_base_mobile/constants/bg_color.dart';
import 'package:sk_base_mobile/util/screen_adaper_util.dart';
class ChangeIconButton extends StatelessWidget {
const ChangeIconButton({super.key, required this.icon});
final Widget icon;
@override
Widget build(BuildContext context) {
return Container(
height: ScreenAdaper.height(60),
width: ScreenAdaper.height(60),
alignment: Alignment.center,
decoration: BoxDecoration(
shape: BoxShape.circle,
gradient: const LinearGradient(
colors: [AppTheme.primaryColorLight, AppTheme.primaryColor]),
boxShadow: [
BoxShadow(
color: neviBlue.withOpacity(.3),
offset: Offset(0, ScreenAdaper.height(10)),
blurRadius: ScreenAdaper.sp(10))
]),
child: icon,
);
}
}