feat:更新主题色适配
This commit is contained in:
@@ -52,7 +52,11 @@ class _MomentFormPageState extends State<MomentFormPage> {
|
||||
provider.momentFormItem.content = value!;
|
||||
});
|
||||
},
|
||||
decoration: buildInputDecoration(context: context, hintText: '请输入朋友圈内容'),
|
||||
decoration: buildInputDecoration(
|
||||
context: context,
|
||||
hintText: '请输入朋友圈内容',
|
||||
prefixIcon: Icons.article,
|
||||
),
|
||||
validator: (value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
return '请输入朋友圈内容';
|
||||
@@ -90,7 +94,10 @@ class _MomentFormPageState extends State<MomentFormPage> {
|
||||
}
|
||||
// 上传按钮(最后一个)
|
||||
else {
|
||||
return buildImageUploadButton(onTap: () => _pickImages(provider));
|
||||
return buildImageUploadButton(
|
||||
context: context,
|
||||
onTap: () => _pickImages(provider),
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
@@ -104,19 +111,21 @@ class _MomentFormPageState extends State<MomentFormPage> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
buildFormLabel('朋友圈内容', required: true),
|
||||
buildFormLabel(context: context, text: '朋友圈内容', isRequired: true),
|
||||
const SizedBox(height: 8),
|
||||
_buildContentField(provider),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
buildFormLabel('上传图片', required: true),
|
||||
buildFormLabel(context: context, text: '上传图片', isRequired: true),
|
||||
const SizedBox(height: 8),
|
||||
_buildImageField(provider),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
|
||||
buildFormButtonGroup(
|
||||
context: context,
|
||||
isShowDelete: provider.isEditing,
|
||||
onConfirm: () => _submitForm(provider),
|
||||
onDelete: () {},
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user