搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。