Flutter ) iOS / Android 플랫폼 구분하는 방법
안녕하세요 :) Zedd입니다. 오늘은 Flutter에서 지금 iOS환경인지..Android환경인지 구분하는 방법을 공부해보겠습니다! 먼저 foundation을 import해주세요. import 'package:flutter/foundation.dart' as foundation; 이제 foundation.defaultTargetPlatform == foundation.TargetPlatform.iOS; foundation.defaultTargetPlatform == foundation.TargetPlatform.android; 이런식으로 구분할 수 있습니다. 방법 1 : 프로퍼티를 만든다. class ZeddApp extends StatelessWidget { bool get isiOS => found..
Flutter
2020. 9. 18. 09:53
TAG
- UIBezierPath
- swift delegate
- FLUTTER
- iOS delegate
- Combine
- 제이슨 파싱
- Swift
- swift tutorial
- actor
- github
- 피아노
- swift3
- 회고
- np-hard
- WKWebView
- IOS
- 스위프트 문법
- WWDC
- SwiftUI
- fastlane
- swift array
- swift sort
- WidgetKit
- np-complete
- ios 13
- 스위프트
- swift 공부
- Xcode
- Accessibility
- Git
글 보관함
반응형
- Total
- Today
- Yesterday