Skip to content

Commit

Permalink
about to fix appointments inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobKlobcic committed Feb 13, 2023
1 parent dea09ef commit 3ccaeae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/screens/dentist/NewAppointment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class _NewAppointment extends State<NewAppointment> {
setState(() {
hours.text=text;
});
hours.selection = TextSelection.fromPosition(TextPosition(offset: hours.text.length));
},
cursorColor: const Color(0xFF161C39),
backgroundCursorColor: const Color(0xFFFFFFFF),
Expand All @@ -157,14 +158,14 @@ class _NewAppointment extends State<NewAppointment> {
width: 30,
height: 27,
child: EditableText(
//forceLine: true,
forceLine: true,
textHeightBehavior: const TextHeightBehavior(
applyHeightToFirstAscent:false,
applyHeightToLastDescent: false,
),
controller: minutes,
focusNode: minutesNode,
textAlign: TextAlign.left,
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 15,
height: 2,
Expand All @@ -180,6 +181,7 @@ class _NewAppointment extends State<NewAppointment> {
setState(() {
minutes.text=text;
});
minutes.selection = TextSelection.fromPosition(TextPosition(offset: minutes.text.length));
},
cursorColor: const Color(0xFF161C39),
backgroundCursorColor: const Color(0xFFFFFFFF),
Expand Down

0 comments on commit 3ccaeae

Please sign in to comment.