8000 make height between time and description dynamic by HabibPro1999 · Pull Request #331 · appinioGmbH/flutter_packages · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

make height between time and description dynamic #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions packages/flutter_timer_countdown/lib/flutter_timer_countdown.dart
8000
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class TimerCountdown extends StatefulWidget {
/// Defines the width between the colons and the units.
final double spacerWidth;

/// Defines the height between the colons and the units.
final double spacerHeight;

TimerCountdown({
required this.endTime,
this.format = CountDownTimerFormat.daysHoursMinutesSeconds,
Expand All @@ -72,6 +75,8 @@ class TimerCountdown extends StatefulWidget {
this.minutesDescription = "Minutes",
this.secondsDescription = "Seconds",
this.spacerWidth = 10,
this.spacerHeight = 5,

});

@override
Expand Down Expand Up @@ -162,7 +167,7 @@ class _TimerCountdownState extends State<TimerCountdown> {
),
if (widget.enableDescriptions)
SizedBox(
height: 5,
height: widget.spacerHeight,
),
if (widget.enableDescriptions)
Text(
Expand Down Expand Up @@ -190,7 +195,7 @@ class _TimerCountdownState extends State<TimerCountdown> {
),
if (widget.enableDescriptions)
SizedBox(
height: 5,
height: widget.spacerHeight,
),
if (widget.enableDescriptions)
Text(
Expand All @@ -213,7 +218,7 @@ class _TimerCountdownState extends State<TimerCountdown> {
),
if (widget.enableDescriptions)
SizedBox(
height: 5,
height: widget.spacerHeight,
),
if (widget.enableDescriptions)
Text(
Expand All @@ -236,7 +241,7 @@ class _TimerCountdownState extends State<TimerCountdown> {
),
if (widget.enableDescriptions)
SizedBox(
height: 5,
height: widget.spacerHeight,
),
if (widget.enableDescriptions)
Text(
Expand All @@ -259,7 +264,7 @@ class _TimerCountdownState extends State<TimerCountdown> {
),
if (widget.enableDescriptions)
SizedBox(
height: 5,
height: widget.spacerHeight,
),
if (widget.enableDescriptions)
Text(
Expand Down
0