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 |
Tags
- DART
- data
- tabbar
- LifeCycle
- Navigation
- 테스트
- android
- Button
- ScrollView
- 앱
- Coroutines
- textview
- appbar
- intent
- 계측
- 앱바
- activity
- viewmodel
- Compose
- scroll
- drift
- livedata
- TEST
- 안드로이드
- binding
- CustomScrollView
- Kotlin
- Flutter
- textfield
- Dialog
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 |