Skip to content

Commit cb62fcb

Browse files
Separated Countdown Text Format class
1 parent 0c40529 commit cb62fcb

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lib/circular_countdown_timer.dart

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// ignore_for_file: constant_identifier_names
2-
31
library circular_countdown_timer;
42

53
import 'package:flutter/material.dart';
4+
import 'countdown_text_format.dart';
65
import 'custom_timer_painter.dart';
76

7+
export 'countdown_text_format.dart';
8+
89
/// Create a Circular Countdown Timer.
910
class CircularCountDownTimer extends StatefulWidget {
1011
/// Filling Color for Countdown Widget.
@@ -419,10 +420,3 @@ class CountDownController {
419420
return "";
420421
}
421422
}
422-
423-
class CountdownTextFormat {
424-
static const String HH_MM_SS = "HH:mm:ss";
425-
static const String MM_SS = "mm:ss";
426-
static const String SS = "ss";
427-
static const String S = "s";
428-
}

lib/countdown_text_format.dart

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// ignore_for_file: constant_identifier_names
2+
class CountdownTextFormat {
3+
static const String HH_MM_SS = "HH:mm:ss";
4+
static const String MM_SS = "mm:ss";
5+
static const String SS = "ss";
6+
static const String S = "s";
7+
}

0 commit comments

Comments
 (0)