representation_page.dart 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. import 'package:bbyyy/my_tools/my_views.dart';
  2. import 'package:bbyyy/my_tools/my_colors.dart';
  3. import 'package:flutter/material.dart';
  4. class RepresentationPage extends StatefulWidget {
  5. @override
  6. _RepresentationPageState createState() => _RepresentationPageState();
  7. }
  8. class _RepresentationPageState extends State<RepresentationPage> {
  9. TextEditingController _content = TextEditingController();
  10. @override
  11. Widget build(BuildContext context) {
  12. return Scaffold(
  13. backgroundColor: MyColors.cF7F7F7,
  14. body: Column(
  15. children: [
  16. MyViews().myAppBar('我要申诉', context, []),
  17. SingleChildScrollView(child: Column(children: [
  18. Container(
  19. margin: EdgeInsets.only(top: 10),
  20. color: Colors.white,
  21. child: Column(
  22. children: [
  23. Container(
  24. width: double.infinity,
  25. margin: EdgeInsets.only(left: 16, top: 17),
  26. child: Text(
  27. '申诉理由',
  28. style:
  29. TextStyle(color: MyColors.c333333, fontSize: 15),
  30. ),
  31. ),
  32. Container(
  33. margin: EdgeInsets.only(left: 15, right: 15, top: 17),
  34. constraints: BoxConstraints(minHeight: 86),
  35. decoration: BoxDecoration(
  36. border: Border.all(color: MyColors.cE7E7E7, width: 1),
  37. borderRadius: BorderRadius.all(
  38. Radius.circular(4),
  39. ),
  40. ),
  41. child: TextField(
  42. controller: _content,
  43. cursorColor: MyColors.cFF4233,
  44. cursorWidth: 1.0,
  45. onTap: () {},
  46. decoration: InputDecoration(
  47. border: InputBorder.none,
  48. disabledBorder: InputBorder.none,
  49. enabledBorder: InputBorder.none,
  50. focusedBorder: InputBorder.none,
  51. isDense: true,
  52. hintText: '请输入申诉理由…',
  53. hintStyle: TextStyle(
  54. color: MyColors.c999999, fontSize: 14),
  55. contentPadding:
  56. const EdgeInsets.fromLTRB(14, 4.5, 8, 4.5),
  57. ),
  58. style: TextStyle(
  59. color: MyColors.c333333,
  60. fontSize: 14,
  61. height: 1.3,
  62. letterSpacing: 0.2),
  63. keyboardType: TextInputType.text,
  64. onChanged: (t) {},
  65. ),
  66. ),
  67. Container(
  68. width: double.infinity,
  69. margin: EdgeInsets.only(left: 16, top: 17),
  70. child: Text(
  71. '证据图片',
  72. style:
  73. TextStyle(color: MyColors.c333333, fontSize: 15),
  74. ),
  75. ),
  76. Container(
  77. margin: EdgeInsets.only(
  78. left: 15, right: 15, bottom: 17, top: 18),
  79. child: Row(
  80. children: [
  81. Container(
  82. height: 102,
  83. width: 102,
  84. decoration: BoxDecoration(
  85. color: MyColors.cF0F0F0,
  86. borderRadius:
  87. BorderRadius.all(Radius.circular(4))),
  88. child: Icon(
  89. Icons.add,
  90. color: MyColors.cB6B6B6,
  91. size: 44,
  92. ),
  93. ),
  94. Container(
  95. height: 102,
  96. width: 102,
  97. decoration: BoxDecoration(
  98. color: MyColors.cF0F0F0,
  99. borderRadius:
  100. BorderRadius.all(Radius.circular(4))),
  101. child: Icon(
  102. Icons.add,
  103. color: MyColors.cB6B6B6,
  104. size: 44,
  105. ),
  106. ),
  107. Container(
  108. height: 102,
  109. width: 102,
  110. decoration: BoxDecoration(
  111. color: MyColors.cF0F0F0,
  112. borderRadius:
  113. BorderRadius.all(Radius.circular(4))),
  114. child: Icon(
  115. Icons.add,
  116. color: MyColors.cB6B6B6,
  117. size: 44,
  118. ),
  119. )
  120. ],
  121. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  122. ),
  123. ),
  124. ],
  125. ),
  126. ),
  127. Container(
  128. color: Colors.white,
  129. margin: EdgeInsets.only(top: 10),
  130. height: 50,
  131. child: MyViews().myText('确 定', MyColors.cFF4233, 16),
  132. alignment: Alignment.center,
  133. )
  134. ],),),
  135. ],
  136. ),
  137. );
  138. }
  139. }