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

flutter_widgetkit 표지
패키지 상세v1.0.3

flutter_widgetkit

iOS 위젯 확장 기능을 위한 Flutter 라이브러리입니다. 앱에 위젯을 통합하세요

iOS
30일 다운로드
7.1천
좋아요
63
Pub 점수
140

패키지 설치

flutter pub add flutter_widgetkit

패키지 개요

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

Flutter WidgetKit은 Flutter 애플리케이션에서 iOS 위젯 확장 기능을 통합할 수 있도록 해주는 라이브러리로, 개발자가 iOS 홈 화면에 동적 콘텐츠를 표시할 수 있게 합니다. 이는 Flutter UI를 Apple의 WidgetKit 프레임워크와 연결하여 Flutter로 구축한 위젯을 iOS 앱 위젯에 원활하게 통합할 수 있도록 합니다. 이 패키지는 앱 데이터를 실시간으로 반영하는 상호작용 가능하고 시각적으로 일관된 위젯을 만드는 과정을 간소화합니다. iOS 전용으로 설계되어, 전체 앱을 실행하지 않고도 핵심 정보에 신속하게 접근할 수 있어 사용자 참여도를 향상시킵니다.

사용 사례

  • 홈 화면에 실시간 앱 데이터 표시
  • 생산성 앱을 위한 인터랙티브 위젯 만들기
  • 빠른 앱 접근을 통한 사용자 참여도 향상
  • 날씨 또는 알림과 같은 실시간 업데이트를 전시
  • 동적 콘텐츠를 사용하여 맞춤 앱 아이콘 만들기

주요 기능

  • iOS WidgetKit과의 원활한 통합
  • 동적 및 정적 위젯 콘텐츠 지원
  • 실시간 데이터 동기화
  • Flutter UI를 통한 크로스플랫폼 일관성
  • pub add 명령을 통한 간편 설정

적합한 대상

  • iOS 중심의 Flutter 개발자
  • 홈 화면 위젯이 필요한 앱
  • 인터랙티브 대시보드를 구축하는 개발자
  • 애플 생태계 사용자를 대상으로 하는 팀
  • 실시간 위젯 업데이트가 필요한 프로젝트

고려 사항

  • iOS 플랫폼 대상 필요
  • iOS 전용; 안드로이드에서는 사용 불가
  • 위젯 확장 기능을 위한 Xcode 구성이 필요합니다
  • 복잡한 상호작용을 위해 추가 코드가 필요할 수 있습니다
  • 애플의 WidgetKit API 안정성에 의존

원본 README

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

flutter_widgetkit

flutter widgetkit

Flutter Library for the iOS 🍏 WidgetKit framework and Widget Communication

widget_small widget_medium widget_small

Table of Contents 📚

Introduction 👨‍🏫

This library allows you to call essential methods from the iOS "WidgetKit Framework", which are needed when developing a widget. For example updating the widget timelines. It is also possible to communicate with the widget via App Groups/UserDefaults.

🚨 To be on the safe side: This library exposes API functionality of WidgetKit. The widgets themselves must be developed natively in SwiftUI.

ℹ️ Blog about writing a Widget with this library

Installation 🖇‍

Add flutter_widgetkit as a dependency in your pubspec.yaml file.

Usage 👨🏻‍💻

import 'package:flutter_widgetkit/flutter_widgetkit.dart';

// Reloading Widget Timelines
WidgetKit.reloadAllTimelines();
WidgetKit.reloadTimelines('test');

// Communicate with Widget
WidgetKit.setItem('testString', 'Hello World', 'group.com.fasky');

Methods 📖‍

WidgetKit.reloadAllTimelines()

Reloads the timelines for all configured widgets belonging to the containing app.


WidgetKit.reloadTimelines(ofKind: String)

Reloads the timelines for all widgets of a particular kind.


WidgetKit.setItem(String key, dynamic value, String appGroup)

Writes Key-Value to UserDefaults database.


WidgetKit.getItem(String key, String appGroup)

Reads Value from UserDefaults database.


WidgetKit.removeItem(String key, String appGroup)

Removes Value for Key from UserDefaults database.


Contributors 🤓

Thomas Leiter

Thomas Leiter

License 🔖

MIT License

Copyright (c) 2020 Thomas Leiter, Fasky OG

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

카테고리

소스 저장소

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

아직 데이터가 없습니다.