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

GitHub 儲存庫ABDULKARIMALBAIK/super_circle

super_circle

由 flutter 框架製作的令人驚嘆的動畫彩色圓圈小部件。

super_circle 專案封面
星標
2
分支
1
最近推送(UTC)
2021年12月9日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

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.


ABDULKARIM ALBAIK GitHub avatar
GitHub 作者

ABDULKARIM ALBAIK ↗

Software engineer 💎 Android/Flutter Developer. 💙 Backend Developer (Nodejs). 🚀

OPEN TO WORKSyria官方網站 ↗
語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項

  • flutter{"sdk":"flutter"}
  • widget_mask^0.1.1
  • flutter_test開發依賴{"sdk":"flutter"}

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗