Comments (1)
Hi!
You mean something about default builder
function and setting only new format
param?
See example below, I'm not explaining it well
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Countdown(
seconds: 20,
// build: (BuildContext context, double time) => Text(time.toString()),
format: DateFormat.ABBR_MONTH, // Use only this
interval: Duration(milliseconds: 100),
onFinished: () {
print('Timer is done!');
},
);
}
}
In simple way in builder
function you may doing all you want with time
argument)
from simple_count_down.
Related Issues (17)
- Feature request: set/reinitialise timer HOT 3
- Feature request: onUpdate HOT 1
- null safety HOT 2
- Add screenshot to README HOT 2
- Infinte looping while debug
- Feature request:The created timer can be paused by default and needs to be manually turned on HOT 1
- start method should be there HOT 2
- Why we don't have onCompleted? HOT 1
- Count Down is not starting HOT 7
- Timer not restarting itself HOT 3
- counter reaches zero it keeps counting HOT 2
- After Changing seconds doesn't displays change in view HOT 3
- If the countdown timer is stopped when it has reached zero seconds and event onFinished has not yet been executed. HOT 2
- Countdown doesn't restart when I call restart() HOT 3
- Access to current time outside from widget? HOT 2
- How to cancel existing timer in on press method? HOT 4
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 simple_count_down.