Untitled
unknown
plain_text
2 years ago
483 B
8
Indexable
class CustomButton extends StatelessWidget {
final Widget child;
const CustomButton({
Key? key,
required this.child,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(12.0),
child: Material(
borderRadius: BorderRadius.circular(12.0),
clipBehavior: Clip.hardEdge,
color: Pallete.backgroundColor,
child: child,
),
);
}
}
Editor is loading...
Leave a Comment