Flutter - How To Create A Stopwatch (stop_watch_timer package)

  Рет қаралды 6,163

Flutter Mentor

Flutter Mentor

Күн бұрын

Пікірлер: 33
@FlutterMentor
@FlutterMentor 3 жыл бұрын
IMPORTANT: This package has been updated since I uploaded this video. If you use a version above ^0.7.0, the stopWatchTimer.rawTime.value won't work. I will try to upload a more updated video soon, but as long as you use version ^0.7.0 this will still work fine!
@JuanFcoRomero
@JuanFcoRomero 3 жыл бұрын
Ideas for a new videos: * state management * structure patterns for Flutter like MVC... ;)
@FlutterMentor
@FlutterMentor 3 жыл бұрын
Thank you for the suggestions! Always helpful. I wish I had more free time to do videos!
@borisllonalonso99
@borisllonalonso99 3 жыл бұрын
awesome work!
@FlutterMentor
@FlutterMentor 3 жыл бұрын
thank you so much!
@sergioernestotostadosanche2509
@sergioernestotostadosanche2509 3 жыл бұрын
Great video! Beforehand I'm glad you for the knowledge sharing and reading my comment. For this package, can we get the stopwatch elapsed time making something if a specific time is reached (i.e. a method call)? Also, I read the comments below this tutorial won't work on the upgraded package, I hope the updated video will resolve that. Regards!
@FlutterMentor
@FlutterMentor 3 жыл бұрын
That is an interesting question, I have never had the need to do it, so I'm not sure. However, I'm positive it's possible. Even if you end up needing to create your own copy/version of the package code and you just include the custom method call yourself. Thank you so much for the kind words and for watching!
@mokudev
@mokudev 3 жыл бұрын
Good!
@FlutterMentor
@FlutterMentor 3 жыл бұрын
Thank you!
@aqua_dio
@aqua_dio 2 жыл бұрын
Amazing 😍 Please tell me how to display records just on minutes and seconds when click lop?)
@FlutterMentor
@FlutterMentor 2 жыл бұрын
Another user left this comment for how to hide milliseconds: "final displayTime = StopWatchTimer. getDisplayTime(value, hours: _isHours, milliSecond: false);" , I think it might be able to help you on this too! And thanks for watching!
@aqua_dio
@aqua_dio 2 жыл бұрын
@@FlutterMentor it just work with timer but with records don't work ((
@FlutterMentor
@FlutterMentor 2 жыл бұрын
@@aqua_dio damn :/ you might have to create a copy of the package file and then make your own version from it. Sometimes it's the only solution
@kamilabduvaliev28
@kamilabduvaliev28 3 жыл бұрын
how to delete milliseconds so that it shows only hours, minutes and seconds? Can I do that?
@FlutterMentor
@FlutterMentor 3 жыл бұрын
Have you tried copying the package and making your own version? If you do that, you could just go to the getDisplayTime method and define the bool milliSecond = false; (it's true in the original class file)
@KorpaG
@KorpaG 3 жыл бұрын
two months have passed, but still suddenly someone will need it. final displayTime = StopWatchTimer. getDisplayTime(value, hours: _isHours, milliSecond: false); Other things can also be configured in getDisplayTime
@salihbalkis72
@salihbalkis72 3 жыл бұрын
How to keep it work when app is closed?
@FlutterMentor
@FlutterMentor 3 жыл бұрын
That's definitely a bit trickier to pull off. See if this can help you: stackoverflow.com/questions/62255486/flutter-how-to-keep-the-app-running-on-background
@jet9974
@jet9974 3 жыл бұрын
any idea why the stopWatchTimer.rawTime.value isn't working to me?
@deveshvaidya4091
@deveshvaidya4091 3 жыл бұрын
Same for me
@deveshvaidya4091
@deveshvaidya4091 3 жыл бұрын
Have you solved it
@jet9974
@jet9974 3 жыл бұрын
​@@deveshvaidya4091 Yes I did. Just use stop_watch_timer: ^0.7.0 version and then stop and rerun your app
@deveshvaidya4091
@deveshvaidya4091 3 жыл бұрын
Ok I will try
@deveshvaidya4091
@deveshvaidya4091 3 жыл бұрын
Why that is not working in upgraded dependencies
Flutter Basic Training - 12 Minute Bootcamp
12:09
Fireship
Рет қаралды 895 М.
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 19 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 7 МЛН
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 36 МЛН
Flutter - How To Get Screen Size Values (Dynamically Sizing Widgets)
4:34
Provider and ChangeNotifier in 7 Minutes
7:23
Fun with Flutter
Рет қаралды 56 М.
Flutter - Examples of Dart List Enumeration With Index
3:49
Flutter Mentor
Рет қаралды 1,2 М.
Flutter - Using The Hero Widget To Create A Simple Animation
4:24
open android emulator directly from vscode
1:12
DeepDiveDevs
Рет қаралды 188 М.
Flutter - How To Create A Multiline TextField (You Decide The Size)
3:49
The perfect imperfection of Google's Material You
15:47
David Imel
Рет қаралды 445 М.
I Wouldn't Use Bubble To Build a No Code SaaS...Here's Why
6:10
Adrian Ching
Рет қаралды 115 М.
Flutter vs React Native vs. Swift/Kotlin In 5 Minutes
5:20
Your Average Tech Bro
Рет қаралды 137 М.
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 19 МЛН