2024-03-19 11:09:07 +08:00
|
|
|
import 'package:flutter/material.dart';
|
2024-03-22 17:26:57 +08:00
|
|
|
import 'package:sk_base_mobile/app_theme.dart';
|
2024-03-19 11:09:07 +08:00
|
|
|
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,
|
2024-03-22 17:26:57 +08:00
|
|
|
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))
|
|
|
|
]),
|
2024-03-19 11:09:07 +08:00
|
|
|
child: icon,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|