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

패키지 상세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 반응성을 강화하여 화면 크기에 관계없이 완성도 높은 경험을 제공하는 앱에 이상적입니다.

사용 사례

  • 크로스 플랫폼 플러터 앱 빌드
  • 적응형 대시보드 레이아웃 만들기
  • 반응형 양식 및 카드 디자인
  • 스플릿 스크린 뷰 구현
  • 장치 간 일관된 타이포그래피 보장
  • 확장 가능한 관리 패널 개발

주요 기능

  • 중앙 정렬 레이아웃 유틸리티
  • 반응형 분할 뷰 컴포넌트
  • 화면 크기 확장 도우미
  • 장치에 기반한 자동 텍스트 스케일링
  • 크로스 플랫폼 호환성
  • 간단한 API 통합

적합한 대상

  • 다양한 플랫폼을 대상으로 하는 개발자
  • 반응형 대시보드를 구축하는 팀
  • 적응형 UI가 필요한 앱
  • 프론트엔드 중심의 플러터 개발자
  • 다양한 화면 크기 요구 사항을 가진 프로젝트
  • 반응형 디자인의 빠른 프로토타이핑

고려 사항

  • 복잡한 레이아웃을 위해 추가 스타일링이 필요할 수 있습니다
  • 고급 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

카테고리

소스 저장소

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

아직 데이터가 없습니다.