goods_delete_bottom_sheet.dart
1.57 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import 'package:flutter/material.dart';
import 'package:one_poem/res/resources.dart';
import 'package:one_poem/routers/fluro_navigator.dart';
import 'package:one_poem/widgets/my_button.dart';
/// design/4商品/index.html#artboard2
class GoodsDeleteBottomSheet extends StatelessWidget {
const GoodsDeleteBottomSheet({
Key? key,
required this.onTapDelete,
}): super(key: key);
final VoidCallback onTapDelete;
@override
Widget build(BuildContext context) {
return Material(
child: SafeArea(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const SizedBox(
height: 52.0,
child: Center(
child: Text(
'是否确认删除,防止错误操作',
style: TextStyles.textSize16,
),
),
),
Gaps.line,
MyButton(
minHeight: 54.0,
textColor: Theme.of(context).errorColor,
text: '确认删除',
backgroundColor: Colors.transparent,
onPressed: () {
NavigatorUtils.goBack(context);
onTapDelete();
},
),
Gaps.line,
MyButton(
minHeight: 54.0,
textColor: Colours.text_gray,
text: '取消',
backgroundColor: Colors.transparent,
onPressed: () {
NavigatorUtils.goBack(context);
},
),
],
),
),
);
}
}