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

패키지 상세v1.1.1

tailwind_standards

Flutter용 Tailwind CSS. 색상, 크기, 두께 및 앱 스타일링을 위한 TText 위젯.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
19
좋아요
28
Pub 점수
150

패키지 설치

flutter pub add tailwind_standards

패키지 개요

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

Tailwind_standards 는 Tailwind CSS 의 유틸리티 우선 스타일링 접근 방식을 Flutter 에 도입하여 색상, 크기, 글꼴 두께를 위한 사전 정의된 클래스 세트를 제공합니다. 간결하고 읽기 쉬운 구문으로 텍스트 스타일링을 단순화하는 TText 위젯이 포함되어 있습니다. Tailwind 익숙한 개발자를 위해 설계되었으며, 다양한 플랫폼에서 빠른 UI 개발을 가능하게 합니다. Android, iOS, Web, macOS, Windows, Linux 모두 지원하며, 사용자 정의 스타일을 작성하지 않고도 일관되고 확장 가능한 디자인 패턴을 원하는 크로스플랫폼 앱에 이상적입니다.

사용 사례

  • 빠른 UI 프로토타이핑
  • 크로스 플랫폼 앱 스타일링
  • 일관된 디자인 시스템
  • 텍스트 스타일링 간소화
  • 보일러플레이트 코드 줄이기

주요 기능

  • Tailwind을 참고한 유틸리티 클래스
  • 스타일링된 텍스트용 TText 위젯
  • 색상, 크기 및 무게 사전 설정
  • 다중 플랫폼 지원
  • 필요한 최소한의 사용자 정의 CSS
  • 깔끔하고 읽기 쉬운 스타일 구문

적합한 대상

  • Tailwind CSS에 익숙한 Flutter 개발자
  • 디자인 일관성을 우선시하는 팀
  • 빠른 UI 반복이 필요한 프로젝트
  • 웹 및 모바일 앱 개발
  • CSS의 반복적인 코드를 줄이고 싶은 개발자

고려 사항

  • 기본 스타일링 유틸리티에 한정
  • 완전한 CSS 대체가 아님
  • 새로운 위젯 규약을 배워야 합니다
  • 간단한부터 중간 수준의 UI에 가장 적합
  • 사용자 정의 스타일링 접근 방식보다 유연성이 낮음

원본 README

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

Tailwind Standards

Style your Flutter app with Tailwind CSS. Colors, Sizes, Weights and a TText widget that takes classes. All in the same structure as you would use Tailwind CSS in HTML.

Features

  • TColor: Use all tailwind default colors
  • TText: An extension on the Flutter Text widget that can be styled in the same way as a class in HTML.
  • TSize: All tailwind default sizes are easily accessible
  • TWeight: Use the naming convention of Tailwind CSS for weights

Getting started

To install the package run the following command.

flutter pub add tailwind_standards

Usage

TColor

TColor has all the default colors that Tailwind CSS offers. You can access every color in the following way.

Color tcolor = TColor.slate500;

Alt text

TText

TText is an extension of the Text widget from Flutter. It takes classes in the same structure as when you use Tailwind CSS for HTML.

const TText(
    'TText widget from tailwind_standards!',
    props: 'text-xs text-gray-500 text-center font-bold',
),
TSize

TSize has all the default Tailwind CSS sizes that are mostly used in padding, margin, etc.

int tsize = TSize.lg;
TWeight

TWeight translates the Tailwind CSS naming convention to the font weights used in Flutter.

FontWeight tweight = TWeight.semiBold;

Additional information

Feedback is always welcome! If you see improvements or if something comes to your attention, please let me know or create a pull request.

카테고리

소스 저장소

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

아직 데이터가 없습니다.