You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/views/widgets/buttons/rounded_back_button.dart

30 lines
837 B
Dart

import 'package:flutter/material.dart';
class RoundedBackButton extends StatelessWidget {
final VoidCallback onPressed;
final IconData icon;
final Color backgroundColor;
final Color iconColor;
const RoundedBackButton({Key key, this.onPressed,@required this.icon,this.backgroundColor,this.iconColor}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.only(left: 8),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: backgroundColor??Colors.blue, // Background color of the circle
),
child: Padding(
padding: const EdgeInsets.all(8),
child: Icon(
icon,
color: iconColor??Colors.white,
size: 22, // Adjust the icon size as needed
),
),
);
}
}