Fixed issue with a specific string as initial duration
This commit is contained in:
1 parent
b711276674
commit
2b8e1dc2cb
1 file changed
+1
-1
@@ -26,7 +26,7 @@ class _DurationPickerState extends State<DurationPicker> {
|
||||
super.initState();
|
||||
if (widget.initialDuration.inMinutes != 0) {
|
||||
_timeString =
|
||||
'${widget.initialDuration.inHours}${widget.initialDuration.inMinutes % 60}';
|
||||
'${widget.initialDuration.inHours}${(widget.initialDuration.inMinutes % 60).toString().padLeft(2, '0')}';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user