Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mkofdwu committed Feb 2, 2021
2 parents dc30c41 + a566ba7 commit 8b3895a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/constants/numbers.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const int minAllowedAge = 13;
const int maxAllowedAge = 50;
const int maxAllowedAge = 20;
const int millisecondsInADay = 86400000;
const int millisecondsInTwoHours = 7200000;
const int numSuggestionsEveryTwoHours = 40;
Expand Down
1 change: 1 addition & 0 deletions lib/pages/chat/widgets/message_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ class _MessageFieldState extends State<MessageField> {
},
);
},
onEditingComplete: _sendMessage,
),
),
SizedBox(width: 10),
Expand Down
3 changes: 3 additions & 0 deletions lib/widgets/textfields/plain.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class PlainTextField extends StatelessWidget {
final double fontSize;
final String fontFamily;
final Function(String) onChanged;
final Function onEditingComplete;

PlainTextField({
Key key,
Expand All @@ -18,6 +19,7 @@ class PlainTextField extends StatelessWidget {
this.fontSize = 20,
this.fontFamily,
this.onChanged,
this.onEditingComplete,
}) : super(key: key);

@override
Expand All @@ -39,6 +41,7 @@ class PlainTextField extends StatelessWidget {
border: InputBorder.none,
),
onChanged: onChanged,
onEditingComplete: onEditingComplete,
);
}
}

0 comments on commit 8b3895a

Please sign in to comment.