goods_size_edit_page.dart
3.03 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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_app_bar.dart';
import 'package:one_poem/widgets/my_button.dart';
import 'package:one_poem/widgets/my_scroll_view.dart';
import 'package:one_poem/widgets/selected_image.dart';
import 'package:one_poem/widgets/text_field_item.dart';
/// design/4商品/index.html#artboard14
class GoodsSizeEditPage extends StatefulWidget {
const GoodsSizeEditPage({Key? key}) : super(key: key);
@override
_GoodsSizeEditPageState createState() => _GoodsSizeEditPageState();
}
class _GoodsSizeEditPageState extends State<GoodsSizeEditPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: const MyAppBar(
centerTitle: '规格分类',
),
body: MyScrollView(
padding: const EdgeInsets.symmetric(vertical: 16.0),
bottomButton: Padding(
padding: const EdgeInsets.only(left: 16.0, right: 16.0, bottom: 8.0),
child: MyButton(
onPressed: () => NavigatorUtils.goBack(context),
text: '确定',
),
),
children: <Widget>[
Gaps.vGap5,
const Padding(
padding: EdgeInsets.only(left: 16.0),
child: Text('基本信息', style: TextStyles.textBold18),
),
Gaps.vGap16,
const Center(
child: SelectedImage(
size: 96.0,
),
),
Gaps.vGap8,
Center(
child: Text(
'点击添加分类图片',
style: Theme.of(context).textTheme.subtitle2?.copyWith(fontSize: Dimens.font_sp14),
),
),
Gaps.vGap16,
const TextFieldItem(
title: '分类名称',
hintText: '填写该分类名称',
),
const TextFieldItem(
title: '折后价格',
keyboardType: TextInputType.numberWithOptions(decimal: true),
hintText: '填写该分类折后价格',
),
const TextFieldItem(
title: '库存数量',
hintText: '填写该分类库存数量',
keyboardType: TextInputType.number
),
const TextFieldItem(
title: '佣金金额',
keyboardType: TextInputType.numberWithOptions(decimal: true)
),
const TextFieldItem(
title: '起购数量',
keyboardType: TextInputType.number
),
Gaps.vGap32,
const Padding(
padding: EdgeInsets.only(left: 16.0),
child: Text('折扣立减', style: TextStyles.textBold18),
),
Gaps.vGap16,
const TextFieldItem(
title: '立减金额',
keyboardType: TextInputType.number,
),
const TextFieldItem(
title: '抵扣金额',
keyboardType: TextInputType.number,
),
Gaps.vGap8,
],
)
);
}
}