1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| 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<EditCard> createState() => _EditCardState();
| }
|
| class _EditCardState extends State<EditCard> {
| @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),
| ],
| ),
| );
| }
| }
|
|