搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.1

floating_ribbon

一個用於在圖像上創建浮動絲帶的新 Flutter 套件。

近 30 天下載
43
喜歡數
22
Pub 分數
30

安裝套件

flutter pub add floating_ribbon

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Floating Ribbon 是一個 Flutter 套件,讓開發者能輕鬆地在圖片上加入時尚的浮動徽章。這些徽章可自訂形狀、顏色與位置,非常適合用來強調特殊內容,例如優惠、新品上市或精選商品。此套件可順暢整合至現有的 UI 中,並支援不同螢幕尺寸的響應式設計。它利用 Flutter 的渲染能力,實現流暢的效能與視覺吸引力。

適用情境

  • 在電子商務應用中突出顯示促銷商品
  • 標記新內容或趨勢內容
  • 向圖像卡片添加裝飾性點綴
  • 在產品圖片上顯示狀態標籤
  • 透過視覺提示增強使用者介面

主要特色

  • 可自定的絲帶形狀和顏色
  • 與 Image 小部件的輕鬆整合
  • 響應式佈局支援
  • 平滑的動畫效果,用於絲帶出現
  • 輕量且依賴極少

適合對象

  • 電子商務應用開發者
  • 尋求視覺提升的UI設計師
  • 開發人員創建動態圖像疊加
  • 需要品牌徽章或標籤的項目
  • 圖片密集型介面的應用程式

使用建議

  • 可能需要額外的樣式才能實現複雜的佈局
  • 有限的平台特定優化
  • 不適用於高性能量化動畫密集型場景
  • 最好與靜態或半靜態圖像內容一起使用
  • 需要仔細定位以避免遮擋重要內容

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Floating Ribbon

pub package Build Status LICENSE

A new Flutter package for creating floating ribbons on images.

Dependency

dependencies:
  floating_ribbon: any

How To Use

In order to achieve the shimmering effect, you need to add a package in pubspec.yaml.

dependencies:
  skeleton_text: any

The code to reproduce it,

import 'package:skeleton_text/skeleton_text.dart';
import 'package:floating_ribbon/floating_ribbon.dart';
FloatingRibbon(
  height: 85,
  width: 85,
  childHeight: 75,
  childWidth: 75,
  child: Padding(
    padding: const EdgeInsets.all(8.0),
    child: FlutterLogo(),
  ),
  childDecoration: BoxDecoration(color: Colors.grey),
  ribbon: SkeletonAnimation(
    child: Center(
      child: Text(
        'Exclusive',
        style: TextStyle(
          color: Colors.white,
        ),
        textAlign: TextAlign.center,
      ),
    ),
  ),
  shadowHeight: 5,
);

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。