feat: report page
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
part of 'button.dart';
|
||||
|
||||
class ActionIconButton extends StatelessWidget {
|
||||
const ActionIconButton({super.key, required this.onTap, required this.icon});
|
||||
|
||||
final Function()? onTap;
|
||||
final IconData icon;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(right: 8),
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
onTap: onTap,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColor.white.withOpacity(0.2),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
child: Icon(icon, color: AppColor.textWhite, size: 20),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -5,3 +5,4 @@ import '../../../common/theme/theme.dart';
|
||||
import '../spacer/spacer.dart';
|
||||
|
||||
part 'elevated_button.dart';
|
||||
part 'action_icon_button.dart';
|
||||
|
||||
Reference in New Issue
Block a user