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

パッケージ詳細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反復が必要なプロジェクト
  • Webおよびモバイルアプリ開発
  • 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.

カテゴリー

ソースリポジトリ

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

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