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

パッケージ詳細v0.0.3

responsive_ui_kit

responsive_ui_kit は、中央配置のレイアウト、応答性のある分割ビュー、画面サイズの拡張、および自動テキストスケーリングを活用して、適応可能でスケーラブルなFlutter UIを構築するのに役立ちます。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
11
いいね数
0
Pub ポイント
160

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

flutter pub add responsive_ui_kit

パッケージ概要

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

responsive_ui_kit は、複数のプラットフォームで適応性があり拡張可能なユーザーインターフェースを作成することを容易にするためのFlutterパッケージです。中央配置レイアウト、レスポンシブなスプリットビュー、画面サイズ拡張機能、および自動テキストスケーリングを提供し、すべてのサイズのデバイスで一貫したUI動作を保証します。クロスプラットフォーム対応を念頭に設計されており、Android、iOS、Web、macOS、Windows、Linux向けの開発を簡素化します。複雑なカスタムロジックを必要とせずにUIの応答性を向上させ、スクリーンサイズに関係なく洗練された体験を提供するアプリに最適です。

用途

  • クロスプラットフォームのFlutterアプリの構築
  • アダプティブダッシュボードレイアウトの作成
  • レスポンシブなフォームとカードのデザイン
  • スプリット画面ビューの実装
  • デバイス間で一貫したタイポグラフィを確保する
  • スケーラブルな管理パネルの開発

主な機能

  • 中央配置ユーティリティ
  • 応答性の高い分割ビュー コンポーネント
  • 画面サイズ拡張ヘルパー
  • デバイスに基づく自動テキストスケーリング
  • クロスプラットフォーム互換性
  • シンプルなAPI統合

適している対象

  • 複数のプラットフォームをターゲットにする開発者
  • 応答性のあるダッシュボードを構築するチーム
  • 適応型UIを必要とするアプリ
  • フロントエンド中心のFlutter開発者
  • さまざまな画面サイズ要件を持つプロジェクト
  • レスポンシブデザインの迅速なプロトタイピング

注意事項

  • 複雑なレイアウトには追加のスタイリングが必要になる場合があります
  • 高度なUIパターンに対するカスタマイズの制限
  • Flutter のレンダリングエンジンに依存しています
  • 非常に動的なコンテンツに最適化されていません
  • 構造的でグリッドベースのデザインに最適
  • レスポンシブデザインの原則を理解する必要があります

元の README

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

🌐 Flutter Responsive UI

A clean and flexible way to build responsive layouts in Flutter across mobile, tablet, and desktop — with minimal boilerplate and powerful layout tools.


✨ Features

🧱 Simple, composable layout widgets
📐 Screen-based constraints (context.width, context.height)
🔡 Auto-scaling text with context.scaleText(...)
🔀 Dynamic Row/Column layout with ResponsiveSplitBody
🧩 ResponsiveCenteredBody for centered readable content
⚙️ Customizable breakpoints
🧠 Inherited context with ResponsiveLayoutProvider
🧪 Built-in example app


📦 Installation

Add to your pubspec.yaml:

dependencies:
  responsive_ui_kit : ^0.0.2

Import the package.

import 'package:flutter_responsive_ui/responsive_ui_kit.dart';

Video

https://github.com/user-attachments/assets/6e97004f-8694-4885-a852-5918e5615e8a

Usage

Wrap your app with ```ResponsiveLayoutProvider```` to access screen size in the widget tree:

void main() {
  runApp(
    const ResponsiveLayoutProvider(
      child: MaterialApp(
        home: MyHomePage(),
      ),
    ),
  );
}

🧱 Core Widgets

✅ ResponsiveCenteredBody

Center your content and constrain its width (default maxWidth = 640).

ResponsiveCenteredBody(
maxWidth: 720,
backgroundColor: Colors.grey[200],
child: Text("Centered content"),
)
🔀 ResponsiveSplitBody

Automatically switches between vertical and horizontal layout:

ResponsiveSplitBody(
primaryChild: Text("Primary"),
secondaryChild: Text("Secondary"),
gap: 16,
)

Force layout direction:

ResponsiveSplitBody(
  forceVerticalLayout: true, // Always vertical
)

Custom breakpoints: use maxMobileWidth property of BreakPoints

 ResponsiveSplitBody(
breakPoints: BreakPoints(maxMobileWidth: 700),
)

📐 Context Extensions

  • Use helpful extensions anywhere:
final screenWidth = context.width;
final screenHeight = context.height;

Global method for scalable sizes

    Column(
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: [
            Text(
              'text widget scaling with screen size',
              style: TextStyle(
                color: Colors.amber,
                // getRespSize will scale your given size according to screen size and TextSizes is class where you can some standarad 
                //text sizes
                fontSize: getRespSize(context, size: TextSizes.titleMedium),
                // TextScalingValues parameter to control of scaling 

              ),
            ),
            Icon(Icons.home, size: getRespSize(context, size: 22))
          ],
        ),

🛠️ Configuration

Feature Usage
Max width ResponsiveCenteredBody(maxWidth: ...)
Custom breakpoints BreakPoints(maxMobileWidth: ...)
Gap between children gap: 20 in ResponsiveSplitBody
Flex ratios primaryFlex, secondaryFlex
Cross axis alignment crossAxisAlignment: CrossAxisAlignment.start

💬 Support

  • 🐛 Issues → https://github.com/kFasih132/flutter_responsive_ui
  • 📖 Docs → This README + example app
  • 🌟 Like it? Star it on pub.dev
Built with ❤️ by Fasih us Rehman for the Flutter community

カテゴリー

ソースリポジトリ

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

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