YSFeedback.dart 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:ysairplane/base/YSBase.dart';
  4. class YSFeedback extends StatefulWidget {
  5. @override
  6. _YSFeedbackState createState() => _YSFeedbackState();
  7. }
  8. class _YSFeedbackState extends State<YSFeedback> {
  9. List array = ['选择1','选择2','选择3'];
  10. @override
  11. Widget build(BuildContext context) {
  12. return YSBase(
  13. ystitle: '意见反馈',
  14. yschild: Column(
  15. children: [
  16. Divider(height: 5,thickness: 5,color: Color(0xFFF5F6F8),),
  17. Container(
  18. height: 50,
  19. padding: EdgeInsets.only(left: 15,right: 15),
  20. child: Row(
  21. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  22. children: [
  23. Text('意见反馈类型',style: TextStyle(fontSize: 16,color: Color(0xFF000000)),),
  24. DropdownButton(
  25. value: '${array[0]}',
  26. items: [
  27. for(int i=0;i<array.length;i++)DropdownMenuItem(child: Text('${array[i]}'),value: '${array[i]}',),
  28. ],
  29. onChanged: (value){
  30. },
  31. underline: Container(),
  32. icon: Icon(Icons.keyboard_arrow_down,size: 20,color: Color(0xFF999999),),
  33. style: TextStyle(fontSize: 15,color: Color(0xFF999999)),
  34. )
  35. ],
  36. ),
  37. ),
  38. Divider(height: 0.5,thickness: 0.5,color: Color(0xFFF5F6F8),),
  39. Container(
  40. margin: EdgeInsets.only(top: 15,bottom: 15),
  41. width: MediaQuery.of(context).size.width-30,
  42. child: Text('留言内容',style: TextStyle(fontSize: 14,color: Color(0xFF999999)),),
  43. ),
  44. Container(
  45. width: MediaQuery.of(context).size.width-30,
  46. padding: EdgeInsets.all(5),
  47. height: 200,
  48. color: Color(0xFFF5F5F7),
  49. child: CupertinoTextField(
  50. style: TextStyle(fontSize: 14,color: Color(0xFF000000)),
  51. decoration: BoxDecoration(),
  52. ),
  53. ),
  54. Container(
  55. width: MediaQuery.of(context).size.width-30,
  56. margin: EdgeInsets.only(top: 40),
  57. height: 40,
  58. alignment: Alignment.center,
  59. decoration: BoxDecoration(
  60. color: Color(0xFF0079FF),
  61. borderRadius: BorderRadius.all(Radius.circular(5))
  62. ),
  63. child: Text('提交',style: TextStyle(fontSize: 17,color: Colors.white,fontWeight: FontWeight.bold),),
  64. )
  65. ],
  66. ),
  67. );
  68. }
  69. }