|
@@ -14,7 +14,7 @@ class NewsRepostTextView extends StatefulWidget {
|
|
|
Key? key,
|
|
Key? key,
|
|
|
this.initialValue,
|
|
this.initialValue,
|
|
|
required this.controller,
|
|
required this.controller,
|
|
|
- this.hintText = '请输入用户所违规的场景中,让你感到不适的地方(3~500字以内)',
|
|
|
|
|
|
|
+ this.hintText = '请输入举报原因,确保您提交的信息真实、客观,且符合中华人民共和国相关法律法规。我们将由专门的审核团队对您提供的内容进行核查并第一时间处理。',
|
|
|
this.onChanged,
|
|
this.onChanged,
|
|
|
this.onSubmitted,
|
|
this.onSubmitted,
|
|
|
this.minLength = 3,
|
|
this.minLength = 3,
|
|
@@ -66,7 +66,7 @@ class _NewsRepostTextViewState extends State<NewsRepostTextView> {
|
|
|
String get _lengthStatusText {
|
|
String get _lengthStatusText {
|
|
|
if (_currentLength < widget.minLength) {
|
|
if (_currentLength < widget.minLength) {
|
|
|
return '至少输入${widget.minLength}个字';
|
|
return '至少输入${widget.minLength}个字';
|
|
|
- } else if (_currentLength > widget.maxLength) {
|
|
|
|
|
|
|
+ } else if (_currentLength >= widget.maxLength) {
|
|
|
return '已超出最大字数限制';
|
|
return '已超出最大字数限制';
|
|
|
} else {
|
|
} else {
|
|
|
return '${_currentLength}/${widget.maxLength}';
|
|
return '${_currentLength}/${widget.maxLength}';
|
|
@@ -104,6 +104,9 @@ class _NewsRepostTextViewState extends State<NewsRepostTextView> {
|
|
|
keyboardType: TextInputType.multiline,
|
|
keyboardType: TextInputType.multiline,
|
|
|
decoration: InputDecoration(
|
|
decoration: InputDecoration(
|
|
|
hintText: widget.hintText,
|
|
hintText: widget.hintText,
|
|
|
|
|
+ hintStyle: TextStyle(
|
|
|
|
|
+ color: Colors.grey
|
|
|
|
|
+ ),
|
|
|
border: OutlineInputBorder(
|
|
border: OutlineInputBorder(
|
|
|
borderSide: BorderSide(
|
|
borderSide: BorderSide(
|
|
|
color: "#12C2C2C2".color,
|
|
color: "#12C2C2C2".color,
|
|
@@ -116,9 +119,6 @@ class _NewsRepostTextViewState extends State<NewsRepostTextView> {
|
|
|
width: 1.0,
|
|
width: 1.0,
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
focusedBorder: OutlineInputBorder(
|
|
|
borderSide: BorderSide(
|
|
borderSide: BorderSide(
|
|
|
color: _isValid ? "#12C2C2C2".color : Colors.red,
|
|
color: _isValid ? "#12C2C2C2".color : Colors.red,
|