You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
961 B
36 lines
961 B
import 'package:new_recook/utils/headers.dart';
|
|
|
|
|
|
class TextReButton extends StatelessWidget {
|
|
|
|
final VoidCallback? onPressed;
|
|
final double? width;
|
|
final double? height;
|
|
final String? text;
|
|
final Color? color;
|
|
final TextStyle? style;
|
|
final BoxDecoration? boxDecoration;
|
|
const TextReButton(
|
|
{Key? key, this.onPressed, this.width, this.height, this.text, this.color, this.style, this.boxDecoration})
|
|
: super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GestureDetector(
|
|
onTap: onPressed,
|
|
child: Container(
|
|
alignment: Alignment.center,
|
|
decoration: boxDecoration != null
|
|
? boxDecoration:BoxDecoration(color: color==null? Colors.transparent:color,),
|
|
width: width,
|
|
height: height,
|
|
child: Text(
|
|
text??"",style: style==null?TextStyle(
|
|
fontSize: 30.sp,color: Color(0xFF333333)
|
|
):style,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|