fix:回复按钮原有的禁用逻辑
This commit is contained in:
parent
48d4081b3e
commit
3831083f77
@ -53,11 +53,15 @@ class SubmitBtn extends StatelessWidget {
|
||||
),
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: isDisabled == true
|
||||
backgroundColor: isDisabled == false
|
||||
? AppColors.btnDisableColor
|
||||
: (isDelete == true ? Colors.red : AppColors.mainColor),
|
||||
),
|
||||
onPressed: isDisabled == true ? null : onClick,
|
||||
onPressed: () {
|
||||
if (onClick != null) {
|
||||
onClick!();
|
||||
}
|
||||
},
|
||||
child: Text(
|
||||
btnName!,
|
||||
textAlign: TextAlign.center, // 文本居中对齐
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user