|
|
@ -12,6 +12,8 @@ class EditRemarksPage extends StatefulWidget { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
|
|
|
|
TextEditingController commentTextController = TextEditingController(); |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Scaffold( |
|
|
|
return Scaffold( |
|
|
@ -65,6 +67,9 @@ class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
child: TextField( |
|
|
|
child: TextField( |
|
|
|
|
|
|
|
controller: commentTextController, |
|
|
|
|
|
|
|
keyboardType: TextInputType.multiline, |
|
|
|
|
|
|
|
maxLines: 10, |
|
|
|
decoration: InputDecoration( |
|
|
|
decoration: InputDecoration( |
|
|
|
isDense: true, |
|
|
|
isDense: true, |
|
|
|
hintText: '请填写备注信息,例如:面包切一刀', |
|
|
|
hintText: '请填写备注信息,例如:面包切一刀', |
|
|
@ -85,17 +90,22 @@ class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
), |
|
|
|
), |
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
|
), |
|
|
|
), |
|
|
|
Container( |
|
|
|
GestureDetector( |
|
|
|
padding: EdgeInsets.all(16.h), |
|
|
|
onTap: (){ |
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
Navigator.pop(context,commentTextController.text); |
|
|
|
alignment: Alignment.center, |
|
|
|
}, |
|
|
|
color: Color(0xFF32A060), |
|
|
|
child: Container( |
|
|
|
child: Text( |
|
|
|
padding: EdgeInsets.all(16.h), |
|
|
|
S.of(context).tijiao, |
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
style: TextStyle( |
|
|
|
alignment: Alignment.center, |
|
|
|
color: Colors.white, |
|
|
|
color: Color(0xFF32A060), |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
child: Text( |
|
|
|
fontSize: 16.sp, |
|
|
|
S.of(context).tijiao, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Colors.white, |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
@ -104,8 +114,15 @@ class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addRemarksCnt(cnt){ |
|
|
|
|
|
|
|
setState(() { |
|
|
|
|
|
|
|
commentTextController.text = commentTextController.text + cnt; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<Widget> remarks() { |
|
|
|
List<Widget> remarks() { |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
|
|
|
|
GestureDetector(child: |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
@ -119,8 +136,9 @@ class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
),onTap: (){addRemarksCnt("面包");},), |
|
|
|
Container( |
|
|
|
GestureDetector(child: |
|
|
|
|
|
|
|
Container( |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Color(0xFF32A060), |
|
|
|
color: Color(0xFF32A060), |
|
|
@ -133,7 +151,8 @@ class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
),onTap: (){addRemarksCnt("面包要切好");},), |
|
|
|
|
|
|
|
GestureDetector(child: |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
@ -147,7 +166,8 @@ class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
),onTap: (){addRemarksCnt("一点");},), |
|
|
|
|
|
|
|
GestureDetector(child: |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
@ -161,7 +181,8 @@ class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
),onTap: (){addRemarksCnt("点");},), |
|
|
|
|
|
|
|
GestureDetector(child: |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
padding: EdgeInsets.symmetric(vertical: 6.h, horizontal: 22.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
@ -175,7 +196,7 @@ class _EditRemarksPage extends State<EditRemarksPage> { |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
),onTap: (){addRemarksCnt("点");},), |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|