From 9d6cdf6e0b5b2137c18c12a35118dbac24abf89d Mon Sep 17 00:00:00 2001 From: mediocre9 Date: Tue, 17 Jan 2023 23:48:19 +0500 Subject: [PATCH] refactor to separate widget --- lib/widgets/custom_image_button.dart | 43 ---------------------------- 1 file changed, 43 deletions(-) delete mode 100644 lib/widgets/custom_image_button.dart diff --git a/lib/widgets/custom_image_button.dart b/lib/widgets/custom_image_button.dart deleted file mode 100644 index 7ced6e9..0000000 --- a/lib/widgets/custom_image_button.dart +++ /dev/null @@ -1,43 +0,0 @@ -import 'package:flutter/material.dart'; - -class CustomImageButton extends StatelessWidget { - final Text label; - final Image image; - final void Function()? onPressed; - - const CustomImageButton({ - super.key, - required this.label, - required this.image, - this.onPressed, - }); - - @override - Widget build(BuildContext context) { - return SizedBox( - width: double.infinity, - child: ElevatedButton.icon( - label: label, - icon: CircleAvatar( - maxRadius: 15, - backgroundColor: Colors.white, - child: image, - ), - style: ButtonStyle( - // shape: MaterialStateProperty.all( - // RoundedRectangleBorder( - // borderRadius: BorderRadius.circular(50), - // ), - // ), - // padding: MaterialStateProperty.all( - // const EdgeInsets.all(15), - // ), - backgroundColor: MaterialStateProperty.all( - Colors.grey, - ), - ), - onPressed: onPressed, - ), - ); - } -}