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

super_circle 封面
套件詳情v1.0.0

super_circle

令人驚嘆的動畫彩色圓形小工具,您可以將其用於個人資料、載入畫面或任何您想要的小工具。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
5
喜歡數
26
Pub 分數
130

安裝套件

flutter pub add super_circle

套件介紹

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

Super Circle 是一個 Flutter 套件,提供了一個具有平滑視覺效果的動畫彩色圓形小部件。非常適合用於個人資料指示器、載入畫面或任何需要動態圓形形狀的裝飾元素。它利用 Flutter 的渲染能力,實現流暢的動畫和可自訂的顏色,提升跨平台的 UI 吸引力。此套件輕量且易於整合,適用於簡單與複雜的設計。其動畫特性增加互動性,同時不犧牲效能。

適用情境

  • 設定檔指示器元件
  • 載入畫面元件
  • 互動式 UI 元素
  • 動畫徽章
  • 儀表板中的視覺強調

主要特色

  • 平滑的動畫顏色過渡
  • 可自訂的圓形大小與形狀
  • 支援多個平台
  • 透過 pub 實現輕鬆整合
  • 高度可自訂的外觀

適合對象

  • 尋求動畫元素的UI設計師
  • 開發互動式應用的開發者
  • 需要吸引人的加載指示器的專案
  • 跨平台行動與Web應用
  • 具有現代、生動設計美學的應用程式

使用建議

  • 可能影響低階裝置的效能
  • 僅限圓形形狀
  • 需要理解動畫原理
  • 不適合用於靜態UI元件
  • 依賴於 Flutter 繪圖引擎的穩定性

原始 README

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

super_circle

Amazing animated colored circular widget, you can use it in your profile , loading screen or with any widget you want.

Add Super Circle => Better UI/UX

pub license repo_size

person loading icon

Features

Animation

This widget animate any widget with pro UI, you can use it to profile screen , loading screen or any widget you want.

Configurable Widget

You can control any part of this widget speed , rotation direction , background color

Installing

Add this to your package's pubspec.yaml file:

dependencies:
  super_circle: latest_version

Then import the package in dart code:

import 'package:super_circle/super_circle.dart';

More details see pub.dev.

Usage

The super_circle package it is so easy to use:

:warning:: The size value must be size <= MediaQuery.of(context).size.width to give you good experience.

Without any child widget

      Center(child: SuperCircle());

Add Image widget

      SuperCircle(
          size: 400,
          rotateBegin: 1.0,
          rotateEnd: 0.0,
          backgroundCircleColor: Colors.black,
          speedRotateCircle: 6000,
          speedChangeShadowColorInner: 2000,
          speedChangeShadowColorOuter: 2000,
          child: Container(
            width: 400,
            height: 400,
            color: Colors.red,
            child: Image.network(
              'http://placekitten.com/g/200/300',
              width: 400,
              height: 400,
              fit: BoxFit.cover,
            ),
          ),
        )

Add Icon widget

      SuperCircle(
        size: 250,
        rotateBegin: 0.0,
        rotateEnd: 1.0,
        backgroundCircleColor: Colors.white,
        speedRotateCircle: 4000,
        speedChangeShadowColorInner: 3000,
        speedChangeShadowColorOuter: 3000,
        child: Container(
          width: 300,
          height: 300,
          child: Icon(Icons.security , color: Colors.red, size: 100,),
        ),
      )

Widget Properties

child

Widget

A widget which it is inside the circle.

size

double

size of the circle (width and height are equal).

backgroundCircleColor

Color

background color of the circle.

rotateBegin

double

The initial value of the rotation , the value between 0.0 and 1.0 .

rotateEnd

double

The final value of the rotation , the value between 0.0 and 1.0 .

spreadShadowBegin

double

The initial value of spread shadow.

spreadShadowEnd

double

The final value of spread shadow.

speedChangeColor

int

The speed value of changing color of the circle.

speedRotateCircle

int

The speed value of rotation of the circle.

speedChangeShadowColorInner

int

The speed value of changing color of the inner shadow.

speedChangeShadowColorOuter

int

The speed value of changing color of the outer shadow.


所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。