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

mobkit_dashed_border のカバー
パッケージ詳細v0.0.8

mobkit_dashed_border

破線およびカーブ境界のカスタム境界の実装。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2.5万
いいね数
68
Pub ポイント
150

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

flutter pub add mobkit_dashed_border

パッケージ概要

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

カスタムの点線枠をサポートし、曲線とスムーズな遷移に対応するFlutterパッケージです。Flutterの装飾システムを拡張して、開発者がダッシュ長、ギャップサイズ、境界の曲率を正確に制御できるようにします。カード、ボタン、またはモダンな美学を持つコンテナのようなUI要素に適しています。このパッケージはAndroid、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームで互換性があります。

用途

  • 破線のアウトラインでカードをスタイリングする
  • 装飾的なボタンの枠を作成する
  • カスタムコンテナフレームの設計
  • 視覚的階層によってUIを強化する
  • 応答性レイアウトコンポーネントの構築

主な機能

  • カーブされた点線の境界線のサポート
  • カスタマイズ可能なダッシュとギャップの長さ
  • すべてのプラットフォームでのスムーズなレンダリング
  • Flutter の BoxDecoration を拡張します
  • pub add を通じた簡単な統合

適している対象

  • 視覚的な魅力を求めるUIデザイナー
  • クロスプラットフォームアプリを開発する開発者
  • 独自のボーダースタイルが必要なプロジェクト
  • モダンまたはミニマリストデザインのアプリ
  • インタラクティブなインターフェースのプロトタイピング

注意事項

  • 複雑な形状ではパフォーマンスに影響する可能性があります
  • 最適な外観を得るためには注意深く調整が必要です
  • 縁の装飾のみに限定
  • 高頻度のアニメーションには適していません
  • 軽量なウィジェットと併用するのが最適です

元の README

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

Mobkit Dashed Border

The Mobkit Dashed Border is a border that provide dashed lines. Same time that package provides use different properties with rounded corner unlike border class.

Getting started

Import the following package.
flutter pub add -d mobkit_dashed_border
import 'package:mobkit_dashed_border/mobkit_dashed_border.dart';

Usage

You can use this package like border class. Below you can see the different types of codes and their outputs.

This sample shows border that has same color ,width and non radius corner

Sample code:

Container(
    height: 75,
    decoration: const BoxDecoration(
        border:
            DashedBorder.fromBorderSide(dashLength: 10, side: BorderSide(color: Colors.black, width: 1),
        ),
    ),
    child: const Center(
        child: Text(
            'Same color and width',
        ),
    ),
),

Output of this code:

selectionScroll
This sample shows border that has same color ,width and radius corner

Sample code:

Container(
    height: 75,
    decoration: const BoxDecoration(
        border: DashedBorder.fromBorderSide(
            dashLength: 15, side: BorderSide(color: Colors.black, width: 2)),
        borderRadius: BorderRadius.all(Radius.circular(10))),
    child: const Center(
        child: Text(
            'Rounded same color and width',
        ),
    ),
),

Output of this code:

selectionScroll
This sample shows border that has different color ,width and radius corner

Sample code:

Container(
    height: 75,
    decoration: const BoxDecoration(
    border: DashedBorder(
        dashLength: 15,
        left: BorderSide(color: Colors.black, width: 2),
        top: BorderSide(color: Colors.red, width: 2),
        right: BorderSide(color: Colors.orange, width: 2),
        bottom: BorderSide(color: Colors.blue, width: 2),
    ),
    borderRadius: BorderRadius.only(
        topLeft: Radius.circular(0),
        topRight: Radius.circular(20),
        bottomLeft: Radius.circular(20),
        bottomRight: Radius.circular(0),
    ),
    ),
    child: const Center(
        child: Text(
            'Different rounded and color',
        ),
    ),
),

Output of this code:

selectionScroll
This sample shows a border drawn only on the corners.

Sample code:

   Container(
    height: 90,
    decoration: BoxDecoration(
    border: DashedBorder.all(
        color: Colors.black,
        dashLength: 40,
        width: 2,
        isOnlyCorner: true,
        strokeAlign: BorderSide.strokeAlignInside,
        strokeCap: StrokeCap.round,
    ),
    borderRadius: BorderRadius.circular(20),
    ),
    child: const Center(
        child: Text(
        'Is only corner',
        ),
    ),
),

Output of this code:

selectionScroll

カテゴリー

ソースリポジトリ

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