Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Dialog
- 안드로이드
- intent
- DART
- activity
- textfield
- Button
- textview
- binding
- 계측
- 테스트
- TEST
- tabbar
- data
- LifeCycle
- 앱
- livedata
- 앱바
- Kotlin
- scroll
- Compose
- Flutter
- appbar
- Navigation
- viewmodel
- android
- Coroutines
- CustomScrollView
- drift
- ScrollView
Archives
- Today
- Total
Study Record
[Flutter] timer 본문
728x90
✍ timer 사용법
import 'dart:async';
import 'package:flutter/services.dart';
Timer timer = Timer.periodic(Duration(milliseconds:1000), (timer) {
print("1초마다 한번씩 실행된다.");
});
timer?.cancel();
728x90
'Flutter' 카테고리의 다른 글
| [Flutter] theme 적용해보기 - 글꼴 (0) | 2023.02.03 |
|---|---|
| [Flutter/Dart] 날짜 (DateTime class) (0) | 2023.02.01 |
| [Flutter] 상태바 글자/아이콘 색상 바꾸기 (0) | 2023.01.31 |
| [Flutter] PageView Widget (0) | 2023.01.31 |
| [Flutter] StatelessWidget / StatefulWidget 생명 주기 (0) | 2023.01.30 |