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

circle_list 封面
套件詳情v1.0.5

circle_list

這是一個完全使用dart編寫的flutter圓形列表外掛,您可以在ios、android或web上使用!

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
497
喜歡數
92
Pub 分數
140

安裝套件

flutter pub add circle_list

套件介紹

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

一個用純 Dart 建立圓形清單的 Flutter 外掛,相容於 Android、iOS、Web、macOS、Windows 與 Linux。它能實現流暢且視覺上吸引人的圓形捲動佈局,非常適合選單、儀表板或互動式 UI。此套件輕量且完全跨平台,無需原生程式碼。專為尋求簡單、可自訂方式來實作徑向清單元件,而不需處理平台特定複雜性的開發者所設計。

適用情境

  • 圓形導航選單
  • 互動式儀表板小部件
  • 徑向選擇介面
  • 自定義可滾動的圓形佈局
  • 移動和網頁應用UI增強

主要特色

  • 純 Dart 實現
  • 跨平台支援
  • 平滑的圓形滾動
  • 可自訂的項目佈局
  • 輕量級且易於整合

適合對象

  • Flutter 開發人員建構圓形 UI
  • 需要徑向導航的應用
  • 具有一致設計的 Web 與移動專案
  • 開發者避免原生程式碼
  • 以使用者介面為導向的應用程式

使用建議

  • 限於圓形佈局模式
  • 可能需要自訂樣式以實現複雜設計
  • 效能取決於項目數量與複雜度
  • 未針對超大資料集進行優化
  • 最適合小型到中型清單

原始 README

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

circle_list

A new Flutter package for Circle List.

Add dependency

dependencies:
  circle_list: ^1.0.2

Super simple to use

import 'package:flutter/material.dart';
import 'package:circle_list/circle_list.dart';

class ShowDemoPage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(backgroundColor: Colors.white,),
      body: Center(
        child: CircleList(
          origin: Offset(0, 0),
          children: List.generate(10, (index) {
            return Icon(
              Icons.details,
              color: index % 2 == 0 ? Colors.blue : Colors.orange,
            );
          }),
        ),
      ),
    );
  }
}

image

If you want to add gradient background
CircleList(
          gradient: LinearGradient(
            colors: [Colors.redAccent, Colors.blueAccent],
          ),
          origin: Offset(0, 0),
          children: List.generate(10, (index) {
            return Icon(
              Icons.details,
              color: index % 2 == 0 ? Colors.blue : Colors.orange,
            );
          }),
        ),

image

Another background
CircleList(
          innerCircleColor: Colors.redAccent,
          outerCircleColor: Colors.greenAccent,
          origin: Offset(0, 0),
          children: List.generate(10, (index) {
            return Icon(
              Icons.details,
              color: index % 2 == 0 ? Colors.blue : Colors.orange,
            );
          }),
        )

image

CenterWidget
CircleList(
          origin: Offset(0, 0),
          children: List.generate(10, (index) {
            return Icon(
              Icons.details,
              color: index % 2 == 0 ? Colors.blue : Colors.orange,
            );
          }),
          centerWidget: ClipRRect(
              borderRadius: BorderRadius.all(Radius.circular(100)),
              child: Image.asset("images/avator.jpg")),
        ),

image

Demo

image

The Demo Link

Params

  double innerRadius;
  double outerRadius;
  double childrenPadding;
  double initialAngle;
  Color outerCircleColor;
  Color innerCircleColor;
  Gradient gradient;
  Offset origin;
  List<Widget> children;
  bool isChildrenVertical;
  RotateMode rotateMode;
  bool innerCircleRotateWithChildren;
  bool showInitialAnimation;
  Widget centerWidget;
  RadialDragStart onDragStart;
  RadialDragUpdate onDragUpdate;
  RadialDragEnd onDragEnd;
  AnimationSetting animationSetting;

所屬分類

原始碼儲存庫

使用此套件的專案