Untitled
unknown
plain_text
a year ago
483 B
7
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