パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.1.0

platform_ui

プラットフォーム固有のウィジェットとUIツールキット

30日間ダウンロード
18
いいね数
41
Pub ポイント
40

パッケージをインストール

flutter pub add platform_ui

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Platform UI は、iOS、Android およびその他のプラットフォームでネイティブに近い体験を提供するように設計された、プラットフォーム固有のウィジェットと UI ツールキットを提供する Flutter/Dart パッケージです。ターゲットプラットフォームに応じて、外観や挙動を自動的に調整するアダプティブコンポーネントを提供し、プラットフォームの慣習と一貫性を確保します。このパッケージは、プラットフォーム間の違いを抽象化することでクロスプラットフォーム開発を簡素化しつつ、視覚的な正確性を維持します。`flutter pub add platform_ui` を使用した最小限のセットアップにより、開発者はプラットフォーム固有のコードを書かずに UI の反応性とユーザー体験を向上させることができます。

用途

  • ネイティブな見た目と感触でクロスプラットフォームアプリを構築する
  • iOS および Android 向けの適応型 UI の作成
  • プラットフォーム固有のウィジェット実装の簡素化
  • デバイス間でのUIの一貫性の向上
  • プラットフォーム対応コンポーネントのボイラープレートを削減する

主な機能

  • 異なるプラットフォーム向けの自動適応ウィジェット
  • 最小構成が必要
  • iOS および Android のデザインガイドラインをサポートしています
  • 拡張可能なウィジェットアーキテクチャ
  • プラットフォームの一貫性を確保するための組み込みテーマ

適している対象

  • クロスプラットフォームのFlutter開発者
  • ネイティブUXを最優先するチーム
  • 複数のオペレーティングシステムをターゲットにするアプリ
  • プラットフォーム固有のコードを減らしたい開発者
  • デバイス間で一貫したUIを必要とするプロジェクト

注意事項

  • iOSおよびAndroidに限定(デスクトップ/Web対応は記載なし)
  • 完全な機能を実現するには、外部の依存関係に依存しています
  • 複雑なUIの要件には、追加のカスタマイズが必要になる場合があります
  • 非常にカスタマイズされたネイティブ以外のデザインを必要とするアプリには適していません
  • パフォーマンスへの影響に関する明示的なドキュメントはありません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Platform UI

by @KRTirtho

Flutter platform specific UI widgets

It mimics the native UI widgets (android, iOS, macOS, linux and windows) as much as possible in Flutter & has a wide collection of platform specific widgets. The names and APIs are similar to Flutter's Material UI widgets to make the Flutter developer feel at home. It's utilizes:

Feature Highlights

  • Simple and customizable platform specific UI widgets
  • Supports all major platforms (android, iOS, macOS, linux and windows)
  • Exposes the internal API to build widgets on top of it
  • Changeable default TargetPlatform for overriding platform design in another platform (it's crazy but cool)
  • Wide collection of platform specific widgets
  • Widget APIs are similar to Flutter's Material UI widgets
  • Dark Mode support

Install

Run following in a terminal:

$ flutter pub add platform_ui fluent_ui macos_ui libadwaita adwaita

Preview

https://krtirtho.github.io/platform_ui/

Usage

Import the package:

import 'package:platform_ui/platform_ui.dart';

Example

import 'package:flutter/material.dart';
import 'package:platform_ui/platform_ui.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return PlatformApp(
      title: 'Platform UI',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return PlatformScaffold(
      appBar: PlatformAppBar(
        title: Text('Platform UI'),
      ),
      body: Center(
        child: PlatformText(
          'Hello World',
          style: TextStyle(fontSize: 30),
        ),
      ),
    );
  }
}

Documentation

Screenshots

Desktop (Linux → Macos → Windows)

Desktop

Mobile (Android → iOS)

Mobile

Support

If you like this project, please consider supporting it by:

  • Starring and sharing the project
  • Following @KrTirtho on Twitter
  • Buying us a coffee ☕️

License

MIT

カテゴリー

依存関係

依存関係一覧 8 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。