Comments (3)
Do you mean this?You can post your code if you can.
from fluttercountdowntimer.
sample code
CountdownTimer(
controller: controller,
widgetBuilder: (_, CurrentRemainingTime? time) {
if (time == null) {
return Text('Game over');
}
return Text(
'days: [ ${time.days} ], hours: [ ${time.hours} ], min: [ ${time.min} ], sec: [ ${time.sec} ]');
},
),
my code
Expanded(
flex: 3,
child: CountdownTimer(
endTime: DateTime.parse(
todaylist[
"date"])
.toLocal()
.millisecondsSinceEpoch,
))
i want to replace : with custom text
i want to show text like 00 hours 10 minutes 42 seconds more
from fluttercountdowntimer.
CountdownTimer( controller: controller, widgetBuilder: (_, CurrentRemainingTime? time) { if (time == null) { return Text('Game over'); } var text = ''; if(time.days != null) { text = '${time.days} days'; } text += '${time.hours ?? '00'} hours ${time.min} minutes ${time.sec} seconds'; ///00 hours 10 minutes 42 seconds return Text(text); }, ),
from fluttercountdowntimer.
Related Issues (20)
- onEnd() callback is called twice HOT 1
- Display format when show 1 digit HOT 2
- Restart Timer HOT 7
- Restart Countdown HOT 3
- How to pause with CountdownTimerController? HOT 8
- how to cancel timer on page change? HOT 9
- utc time? HOT 4
- onEnd called before timer ends. HOT 2
- Please add future to support value Listener
- onchanged callback should also be provided HOT 2
- When you spam start and stop, the timer will be faster
- Is it possible to show the milliseconds with the default countdown widget? HOT 5
- pause/rusme counter HOT 3
- Time in specific timezone HOT 1
- No Reset Method for CountdownController HOT 1
- Localization problems HOT 1
- Please try to make pub.dev readme's example code more readable.
- OnEnd called when you reset timer
- Counter doesn't keep in mind nano seconds
- onEnd Function is not call after counter is end HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluttercountdowntimer.