Row(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(title,style: TextStyle(fontSize: 28.sp,fontWeight: FontWeight.w600),),
SizedBox(height: 4.w),
Text(desc,style: TextStyle(color:JadeColors.grey,fontSize: 22.sp),)
],
),
Expanded(child: GestureDetector(
child: Container(color: Colors.white,),
onTap: (){
FocusScope.of(context).requestFocus(focusNode);
},
)),
if(editingController == logic.state.expectAmountController)
Container(
padding: EdgeInsets.only(bottom: 10.w),
child: Text('¥',style: TextStyle(fontSize: 28.sp,color: JadeColors.grey,),),
),
ConstrainedBox(
constraints: BoxConstraints(minWidth: 20.w,maxWidth: Utils().screenWidth(context)*0.4),
child: IntrinsicWidth(
child: TextField(
textAlign: TextAlign.right,
controller: editingController,
focusNode: focusNode,
style: TextStyle(
fontSize: 30.sp,
color: JadeColors.grey_2,
fontWeight: FontWeight.w600),
keyboardType: TextInputType.number,
textInputAction: TextInputAction.next,
maxLines: 1,
decoration: InputDecoration(
filled: true,
fillColor: Colors.white,
contentPadding: EdgeInsets.only(
left: 4.w, right: 4.w, top: 10.w,bottom: 10.w),
alignLabelWithHint: false,
border: OutlineInputBorder(
borderSide: BorderSide.none,
borderRadius: BorderRadius.circular(8.w)),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide.none,
borderRadius: BorderRadius.circular(8.w)),
),
inputFormatters: [
editingController == logic.state.expectPeopleController
? FilteringTextInputFormatter(RegExp("[0-9]"), allow: true)
: FilteringTextInputFormatter.allow(RegExp(r'^\d*\.?\d{0,2}$'))
],
cursorColor: JadeColors.grey,
onChanged: (value){
logic.countExpectAmount();
},
onEditingComplete: () {},
),
),
),
if(editingController == logic.state.expectPeopleController)
Container(
padding: EdgeInsets.only(right: 10.w,bottom: 10.w),
child: Text('${S.current.ren1}',style: TextStyle(fontSize: 28.sp,color: JadeColors.grey_2,),),
),
Container(
child: Image.asset(
'images/my/option/shezhi_jiantou.png',
color: Color(0xffa3a3a3),
height: 13,
width: 7,
),
)
],
)