패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.0.4

os_detect

플랫폼에 의존하지 않는 OS 감지.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
42.8만
좋아요
44
Pub 점수
150

패키지 설치

flutter pub add os_detect

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

os_detect 패키지는 Dart 애플리케이션이 실행 중인 운영 체제를 플랫폼에 관계없이 감지할 수 있는 방법을 제공합니다. Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼에서 현재 OS를 식별하기 위한 간단한 API를 제공합니다. 이를 통해 개발자는 플랫폼 고유의 확인 없이도 기반 운영 체제에 따라 동작을 조정하는 크로스플랫폼 코드를 작성할 수 있습니다. 이 패키지는 Dart 커널 라이브러리의 일부로 신뢰성과 일관성을 보장합니다. 파일 경로 처리나 UI 조정과 같은 OS 인식 로직이 필요한 애플리케이션에 적합합니다.

사용 사례

  • 크로스 플랫폼 앱 동작 사용자 정의
  • 운영 체제에 따라 파일 경로 형식 지정
  • 조건부 UI 렌더링
  • 시스템 고유 기능 감지
  • 운영체제별 디버깅 및 로깅
  • 네이티브 OS 기능과의 통합

주요 기능

  • 모든 주요 플랫폼을 지원합니다
  • 간단하고 일관된 API
  • Dart 핵심 라이브러리의 일부
  • 외부 종속성 없음
  • 정확한 운영체제 식별
  • 경량이고 효율적

적합한 대상

  • 다중 플랫폼 Flutter 앱을 개발하는 개발자
  • 운영체제별 로직이 필요한 앱
  • 런타임 운영체제 인식이 필요한 도구
  • 크로스 플랫폼 유틸리티
  • Dart 라이브러리 유지보수자

고려 사항

  • 운영체제 식별에만 제한됨
  • 세부 운영체제 버전 정보를 제공하지 않습니다
  • 저수준 시스템 작업에 적합하지 않습니다
  • 웹 컨텍스트에서 신중한 처리가 필요합니다
  • 런타임 구성 옵션 없음
  • Dart SDK 사용 가능 여부에 따라 달라집니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

카테고리

의존성

의존성 목록 2 개

소스 저장소

이 패키지를 사용하는 프로젝트