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

circle_flags 封面
套件詳情v7.0.0

circle_flags

一組圓形旗幟

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
9.2萬
喜歡數
41
Pub 分數
140

安裝套件

flutter pub add circle_flags

套件介紹

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

Circle Flags 是一個 Flutter 套件,提供一組圓形國家旗幟,設計用於輕鬆整合到應用程式中。它提供乾淨、一致的視覺風格,並在多個平台上有優化的效能。這些旗幟以可縮放的向量資源提供,確保在所有裝置密度下都能呈現清晰畫面。非常適合需要快速識別國家的應用場景,例如語言選擇器、使用者個人檔案或國際化功能。此套件支援 Android、iOS、Web、macOS、Windows 和 Linux,讓跨平台開發極具彈性。

適用情境

  • 國家選擇介面
  • 使用者資料本地化
  • 國際應用功能
  • 語言選擇組件
  • 全球分析儀表板
  • 多區域支援

主要特色

  • 圓形旗幟圖示
  • 跨平台相容性
  • 可縮放向量圖形
  • 透過 pub 實現輕鬆整合
  • 針對效能進行優化
  • 預定義國家列表

適合對象

  • 面向國際用戶的應用程式
  • 在地化工具
  • 旅行與語言應用
  • 全球電商平台
  • 尋求一致性的UI/UX設計師

使用建議

  • 僅限預定義國家旗幟
  • 不支援自訂旗標
  • 需要網路以取得最新更新
  • 不適合用於非國家旗幟的用途
  • 可能會稍微增加套件大小
  • 無動畫或互動功能

原始 README

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

circle_flags

A collection of circular country flags.

Demo

to view all flags https://hatscripts.github.io/circle-flags/gallery

Usage


// use a valid country code
CircleFlag('us');
CircleFlag('fr');
CircleFlag(Flags.US);

Preloading

You might want to preload images for a smoother list scrolling experience:

CircleFlag.preload(['fr', 'us']);

Overwriting or adding custom flags

Some users have expressed their need to change some flags due to political reasons, or stylistic reasons. You might also wish to add your own flags. To do so refer to this issue: https://github.com/cedvdb/phone_form_field/issues/222

Contributing & issues

see CONTRIBUTING.md

For generating the flag.dart just run

    dart run tools/generate_flag.dart

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案