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

패키지 상세v1.1.2

enough_platform_widgets

Cupertino 및 Material 디자인을 사용하여 Flutter 앱을 개발하기 위한 유용한 플랫폼 인식 위젯입니다.

30일 다운로드
3.7천
좋아요
41
Pub 점수
40

패키지 설치

flutter pub add enough_platform_widgets

패키지 개요

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

Enough Platform Widgets는 Flutter에서 Cupertino(iOS) 및 Material(Android) 디자인 시스템 간에 자연스럽게 전환되는 플랫폼 인식 위젯의 컬렉션을 제공합니다. 이러한 위젯은 수동 조건문 없이 플랫폼 간 일관되고 네이티브 같은 UI 경험을 보장합니다. 이 패키지는 타겟 플랫폼의 디자인 언어에 따라 자동으로 렌더링되는 통합 컴포넌트를 제공함으로써 크로스플랫폼 개발을 단순화합니다. 시각적 조화를 유지하면서 반복 코드를 줄이고자 하는 개발자에게 이상적입니다.

사용 사례

  • 크로스 플랫폼 앱 개발
  • 네이티브 iOS 및 안드로이드 인터페이스 만들기
  • 조건부 위젯 로직 줄이기
  • 다양한 플랫폼 간에 일관된 UX 유지
  • 테마 적응 간소화

주요 기능

  • 자동 플랫폼 감지
  • Cupertino 및 Material 위젯 변형
  • 최소한의 보일러플레이트
  • 다중 플랫폼 간 일관된 스타일
  • 기존 Flutter 앱과의 간편한 통합

적합한 대상

  • iOS 및 Android를 대상으로 하는 Flutter 개발자
  • 네이티브 디자인 일관성 요구 앱
  • 코드 간결성을 우선시하는 팀
  • UI/UX 마감이 까다로운 프로젝트
  • 개발자들이 수동 플랫폼 확인을 피한다

고려 사항

  • iOS 및 안드로이드 플랫폼에 제한됨
  • Flutter의 플랫폼 인식에 의존합니다
  • 추가 스타일 맞춤 설정이 필요할 수 있습니다
  • 웹 또는 데스크톱 앱에 적합하지 않습니다
  • 혼합 플랫폼 디자인 요구 사항이 있는 앱에서 가장 효과적으로 사용됨

원본 README

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

enough_platform_widgets

enough_platform_widgets version

More cross platform widgets for Flutter developers.

Based on these great packages:

Licensed commercially friendly under the MIT License.

Installation

Add this as a dependency to your pubspec.yaml:

dependencies:
  enough_platform_widgets: ^1.0.0

Flutter Versions

  • Use 1.0 or higher for Flutter 3.16+
  • Use 0.7.4 for previous Flutter versions

Platform Widgets and Methods

Platform widgets use their material or cupertino equivalent based on the chosen platform.

  • DecoratedPlatformTextField provides a cross platform replacement for the material TextField
  • DensePlatformIconButton replaces the material IconButton
  • DialogHelper helps to show platform specific dialogs
  • PlatformBottomBar shows a BottomAppBar on material and a CupertinoBar on cupertino
  • PlatformCheckboxListTile is a platform aware simple checkbox list tile
  • PlatformChip a simple cross-platform Chip replacement
  • PlatformDialogActionButton is a platform aware dialog action
  • PlatformDialogActionText provides a platform aware dialog action text
  • PlatformDropdownButton is a replacement for the material DropdownButton
  • PlatformFilledButtonIcon uses an ElevatedButton.filled on material and a CupertinoButton.filled on cupertino
  • PlatformInkWell is a rectangular area of a that responds to touch and is based either on InkWell or on CupertinoInkWell
  • PlatformPageScaffold provides a PlatformScaffold with the additional option to define a bottom bar.
  • PlatformPopupButton uses an action sheet on cupertino and a popup button on material.
  • PlatformProgressIndicator uses a CircularProgressIndicator on material and a CupertinoActivityIndicator on cupertino
  • PlatformRadioListTile provides a RadioListTile implementation for both material and cupertino
  • PlatformSliverAppBar uses a SliverAppBar on material or a CupertinoSliverNavigationBar on cupertino
  • PlatformSnackApp is a base app that allows to show SnackBars on cupertino as well
  • PlatformStepper abstracts the Stepper material widget
  • PlatformTextButtonIcon is a simple replacement for TextButton.icon
  • PlatformToggleButtons provides a platform aware ToggleButtons replacement
  • PlatformToolbar provides a toolbar option
  • SelectablePlatformListTile provides a ListTile implementation for both material and cupertino
  • showPlatformTimePicker() displays a platform aware time picker
  • showPlatformDatePicker() displays a platform aware date picker
  • Additionally, all flutter_platform_widgets are available.

Cupertino Widgets

Currently the following cupertino widgets are provided:

  • CupertinoBar is a simple cupertino bar that either blurs the background or provides a translucent background
  • CupertinoCheckboxListTile provides a simple cupertino style checkbox list tile
  • CupertinoChip is a cupertino version of the material Chip widget
  • CupertinoDropdownButton maps the basic dropdown feature to a CupertinoPicker
  • CupertinoInkWell is a rectangular area of a that responds to touch
  • CupertinoMultipleSegmentedControl is like the CupertinoSegmentedControl but it allows to select several segments at once
  • CupertinoPageScaffoldWithToolbar provides a scaffold with the option to define a toolbar widget
  • CupertinoPageWithBar is a simple page with a bar that can be aligned top/bottom/left/right
  • CupertinoRadioListTile provides a simple cupertino style radio list tile
  • CupertinoSearchFlowTextField displays a CupertinoSearchTextField with the expected UX flow that switches to a full-screen experience once editing starts
  • CupertinoSnackApp is a CupertinoApp that also allows to display snack bar messages
  • CupertinoToolbar a simple wrapper for a cupertino toolbar widget

API Documentation

Check out the full API documentation at https://pub.dev/documentation/enough_platform_widgets/latest/

Thanks to all Contributors!!

Made with contrib.rocks.

카테고리

의존성

의존성 목록 3 개

소스 저장소

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