From 5e74308bf059da081e92badbafa92a61cc4e7e68 Mon Sep 17 00:00:00 2001 From: HabibPro1999 Date: Thu, 16 Jan 2025 11:23:37 +0000 Subject: [PATCH 1/3] make height dynamic --- .../lib/flutter_timer_countdown.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart b/packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart index cdc0d162..0739e449 100644 --- a/packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart +++ b/packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart @@ -58,6 +58,9 @@ class TimerCountdown extends StatefulWidget { /// Defines the width between the colons and the units. final double spacerWidth; + /// Defines the width between the colons and the units. + final double spacerHeight; + TimerCountdown({ required this.endTime, this.format = CountDownTimerFormat.daysHoursMinutesSeconds, @@ -72,6 +75,8 @@ class TimerCountdown extends StatefulWidget { this.minutesDescription = "Minutes", this.secondsDescription = "Seconds", this.spacerWidth = 10, + this.spacerHeight = 5, + }); @override @@ -162,7 +167,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: 5, + height: spacerHeight, ), if (widget.enableDescriptions) Text( @@ -190,7 +195,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: 5, + height: spacerHeight, ), if (widget.enableDescriptions) Text( @@ -213,7 +218,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: 5, + height: spacerHeight, ), if (widget.enableDescriptions) Text( @@ -236,7 +241,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: 5, + height: spacerHeight, ), if (widget.enableDescriptions) Text( @@ -259,7 +264,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: 5, + height: spacerHeight, ), if (widget.enableDescriptions) Text( From ba2fa19eb3e271191cb79be68ed0105ae4424e88 Mon Sep 17 00:00:00 2001 From: HabibPro1999 Date: Thu, 16 Jan 2025 11:37:06 +0000 Subject: [PATCH 2/3] update version --- packages/flutter_timer_countdown/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_timer_countdown/pubspec.yaml b/packages/flutter_timer_countdown/pubspec.yaml index 48ece2fd..ce8ca389 100644 --- a/packages/flutter_timer_countdown/pubspec.yaml +++ b/packages/flutter_timer_countdown/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_timer_countdown description: A simple timer for counting down a given time. Supports customizable appearance and different formats. -version: 1.0.7 +version: 1.0.8 homepage: https://github.com/appinioGmbH/flutter_packages repository: https://github.com/appinioGmbH/flutter_packages/tree/main/packages/flutter_timer_countdown From 795047f112f756f4a86906760fa3237a47845332 Mon Sep 17 00:00:00 2001 From: HabibPro1999 Date: Thu, 16 Jan 2025 11:42:15 +0000 Subject: [PATCH 3/3] fix not using widget. --- .../lib/flutter_timer_countdown.dart | 12 ++++++------ packages/flutter_timer_countdown/pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart b/packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart index 0739e449..ae582e25 100644 --- a/packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart +++ b/packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart @@ -58,7 +58,7 @@ class TimerCountdown extends StatefulWidget { /// Defines the width between the colons and the units. final double spacerWidth; - /// Defines the width between the colons and the units. + /// Defines the height between the colons and the units. final double spacerHeight; TimerCountdown({ @@ -167,7 +167,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: spacerHeight, + height: widget.spacerHeight, ), if (widget.enableDescriptions) Text( @@ -195,7 +195,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: spacerHeight, + height: widget.spacerHeight, ), if (widget.enableDescriptions) Text( @@ -218,7 +218,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: spacerHeight, + height: widget.spacerHeight, ), if (widget.enableDescriptions) Text( @@ -241,7 +241,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: spacerHeight, + height: widget.spacerHeight, ), if (widget.enableDescriptions) Text( @@ -264,7 +264,7 @@ class _TimerCountdownState extends State { ), if (widget.enableDescriptions) SizedBox( - height: spacerHeight, + height: widget.spacerHeight, ), if (widget.enableDescriptions) Text( diff --git a/packages/flutter_timer_countdown/pubspec.yaml b/packages/flutter_timer_countdown/pubspec.yaml index ce8ca389..48ece2fd 100644 --- a/packages/flutter_timer_countdown/pubspec.yaml +++ b/packages/flutter_timer_countdown/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_timer_countdown description: A simple timer for counting down a given time. Supports customizable appearance and different formats. -version: 1.0.8 +version: 1.0.7 homepage: https://github.com/appinioGmbH/flutter_packages repository: https://github.com/appinioGmbH/flutter_packages/tree/main/packages/flutter_timer_countdown