import 'package:flutter/cupertino.dart'; import '../widgets/buttons/custom_elevated_button.dart'; import 'main_card.dart'; class EditCard extends StatefulWidget { final VoidCallback onPressed; final String title; final Type? type; final BtnSize? btnSize; const EditCard({super.key, required this.onPressed, required this.title, this.type, this.btnSize}); @override State createState() => _EditCardState(); } class _EditCardState extends State { @override Widget build(BuildContext context) { return MainCard( isPadding: true, child: Row( children: [ Text('ๅ•†ๅ“ๅˆ—่กจ', style: TextStyle( fontSize: 18, fontWeight: FontWeight.bold, fontFamily: 'PingFang SC')), Spacer(), CEBtn(title: widget.title, type: widget.type, btnSize: widget.btnSize, onPressed: widget.onPressed), ], ), ); } }