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 |
Tags
- DART
- LifeCycle
- 테스트
- CustomScrollView
- android
- textview
- activity
- textfield
- Compose
- 앱
- 안드로이드
- ScrollView
- intent
- 앱바
- appbar
- Button
- TEST
- scroll
- viewmodel
- Dialog
- drift
- 계측
- Coroutines
- binding
- tabbar
- Flutter
- livedata
- Kotlin
- data
- Navigation
Archives
- Today
- Total
Study Record
[Flutter] Debug 혹은 Release 인지 판단하는 방법 본문
728x90
🎁 Debug 혹은 Release 판단
간단하게 kReleaseMode 혹은 kDebugMode 로 판단할 수 있다.
import 'package:flutter/foundation.dart';
if (kReleaseMode) {
// 릴리즈 모드
}
if (kDebugMode) {
// 디버그 모드
}
728x90
'Flutter' 카테고리의 다른 글
[Flutter] 뒤로 가기(back press) 버튼 컨트롤 (WillPopScope) (0) | 2023.04.24 |
---|---|
[Flutter] 앱 이름 바꾸기 (app name) (0) | 2023.04.22 |
[Flutter] Dialog (다이얼로그), 모서리가 둥근 다이얼로그 (0) | 2023.04.20 |
[AndroidStudio] 자동 완성 설정하기 (Live Templates) (0) | 2023.04.14 |
[Flutter] Run start ms-settings:developers (0) | 2023.04.07 |