Skip to content

Commit

Permalink
prolific id
Browse files Browse the repository at this point in the history
  • Loading branch information
1Haixin committed May 9, 2023
1 parent 942bc6c commit 20f8d61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion RewardProcessing/lib/questionnaire/intro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ class _IntroState extends State<Intro> {
onPressed:() {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const ProlificID()
MaterialPageRoute(builder:
(context) => const
ProlificID()
)
);
},
Expand Down
6 changes: 3 additions & 3 deletions RewardProcessing/lib/questionnaire/prolific_id.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class _ProlificIDState extends State<ProlificID> {
validator: (val) {
return (RegExp("[A-Za-z0-9]").hasMatch(
prolificID) &&
prolificID.length <= 15)
prolificID.length <= 30)
? null
: "Request body length over limit";
},
Expand Down Expand Up @@ -194,7 +194,7 @@ class _ProlificIDState extends State<ProlificID> {
activeButton = value.isNotEmpty ? true : false;
_textEditingController.text = value;

if (value.length > 15) {
if (value.length > 30) {
counterTextColor = Colors.red;
} else {
counterTextColor = Colors.black;
Expand All @@ -211,7 +211,7 @@ class _ProlificIDState extends State<ProlificID> {
Text(
'${_textEditingController.text
.trim()
.length}/15',
.length}/30',
style: TextStyle(
color: counterTextColor
)
Expand Down

0 comments on commit 20f8d61

Please sign in to comment.