반응형
st 입력후 stful or stless 선택 가능
alt + enter : 위젯 감싸기
ctrl + o : override
ctrl + space : suggenstions
ctrl + Alt + L : reformat code
alt + insert : Generate (constructor/getter/setter)
--no-sound-null-safety
<debug 배너제거>
MaterialApp 안에서
debugShowCheckedModeBanner: false,
<플랫폼 구분>
import 'package:flutter/foundation.dart' as foundation;
if(foundation.defaultTargetPlatform == foundation.TargetPlatform.android)
//platform.dart
enum TargetPlatform {
/// Android: <https://www.android.com/>
android,
/// Fuchsia: <https://fuchsia.dev/fuchsia-src/concepts>
fuchsia,
/// iOS: <https://www.apple.com/ios/>
iOS,
/// Linux: <https://www.linux.org>
linux,
/// macOS: <https://www.apple.com/macos>
macOS,
/// Windows: <https://www.windows.com>
windows,
}
반응형
'Flutter' 카테고리의 다른 글
Flutter - Firebase 설정 (0) | 2022.02.06 |
---|---|
Flutter - carousel_slider (0) | 2022.02.06 |
Flutter - File IO / Delay / 가로모드 (0) | 2022.02.06 |
Flutter - ToJson (0) | 2022.02.06 |
Flutter - Database (0) | 2022.02.06 |