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

zo_animated_border 封面
套件詳情v1.1.0

zo_animated_border

使用 zo_animated_border 為任何 Flutter 小部件添加動畫、發光和漸變邊框——適用於現代使用者介面的強大且彈性套件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
6530
喜歡數
137
Pub 分數
160

安裝套件

flutter pub add zo_animated_border

套件介紹

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

zo_animated_border 是一個 Flutter 套件,讓開發者能夠為任何組件加入動態、動畫、發光及漸層邊框。透過流暢的過渡與可自訂的效果,提升使用者介面的現代視覺吸引力。此套件支援多個平台,並能順暢整合至現有的 Flutter 專案中。非常適合用於按鈕、卡片以及需要吸引目光的互動元件。彈性的設定可控制顏色、動畫速度與邊框樣式。設計簡潔且效能優異,是打造吸引人的使用者介面的理想選擇。

適用情境

  • 建立動畫按鈕
  • 增強卡片組件
  • 在網頁上添加懸停效果
  • 設計互動式UI元素
  • 實現發光聚焦狀態
  • 建構現代儀表板小部件

主要特色

  • 動畫邊框過渡
  • 發光邊框效果
  • 漸變邊框支援
  • 可自訂的動畫速度
  • 跨平台相容性
  • 與現有組件的輕鬆整合

適合對象

  • 尋求現代美學的UI設計師
  • 開發互動式應用的開發者
  • 面向前端的 Flutter 項目
  • 視覺參與度高的應用
  • 原型化動態介面
  • 針對多個平台的專案

使用建議

  • 可能影響低階裝置的效能
  • 複雜動畫需要仔細調校
  • 僅限邊框裝飾
  • 不適合用於靜態UI
  • 最佳搭配重疊元素最少的場景使用
  • 動畫可能會與其他變換衝突

原始 README

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

pub package pub points License: MIT

Zo Animated Border is a powerful Flutter package that brings modern UI to life with beautifully animated borders. Whether you're building a login screen, a button, or a decorative container, this package lets you wrap any widget with stylish, animated border effects.

Getting started

First, add zo_animated_border as a dependency in your pubspec.yaml file

dependencies:
  flutter:
    sdk: flutter
  zo_animated_border : ^[version]

Import the package

import 'package:zo_animated_border/zo_animated_border.dart';

Usage

For Gradient border

gradient_border (online-video-cutter com)

ZoAnimatedGradientBorder(
  borderRadius: 100,
  animationCurve: Curves.linear,
  borderThickness: 4,
  gradientColor: [
    Colors.yellow,
    Colors.orange,
  ],
  animationDuration: const Duration(seconds: 4),
  child: Container(
    width: 100,
    height: 100,
    alignment: Alignment.center,
    decoration: BoxDecoration(
      shape: BoxShape.circle,
    ),
    child: Text(
      "Circle",
      style: TextStyle(color: Colors.white),
    ),
  ),
);

For Fire Border

Screen Recording 2026-07-25 at 11 22 57 PM
ZoFireBorder(
  duration: const Duration(seconds: 3),
  borderWidth: 4,
  snakeLength: 0.8,
  borderRadius: BorderRadius.circular(24),
  gradient: const LinearGradient(
    colors: [
      Colors.orange,
      Colors.red,
      Colors.green,
    ],
  ),
  particleColors: const [
    Colors.orange,
    Colors.orangeAccent,
    Colors.white,
  ],
  child: Container(
    width: 200,
    height: 200,
    alignment: Alignment.center,
    decoration: BoxDecoration(
      color: Colors.black,
      borderRadius: BorderRadius.circular(24),
    ),
    child: const Icon(
      Icons.local_fire_department,
      color: Colors.white,
      size: 60,
    ),
  ),
),

For Psycho Border

Screen Recording 2026-07-25 at 11 19 24 PM
ZoPsychoBorder(
  ringCount: 4,
  maxSpread: 10.0,
  borderRadius: BorderRadius.circular(75),
  colors: const [
    Color(0xFFFF2A85),
    Color(0xFFFF992A),
    Color(0xFF00E5FF),
    Color(0xFF6B2AFF),
  ],
  duration: const Duration(seconds: 3),
  child: Container(
    width: 150,
    height: 150,
    alignment: Alignment.center,
    decoration: BoxDecoration(
      color: Colors.transparent,
      borderRadius: BorderRadius.circular(20),
    ),
    child: const Text(
      'Z',
      style: TextStyle(
        color: Colors.white,
        fontSize: 50,
        fontWeight: FontWeight.bold,
      ),
    ),
  ),
),

For Sequential Glow Border

Screen Recording 2026-09-08 at 12 28 33 PM
ZoSequentialGlowBorder(
  borderRadius: BorderRadius.circular(20),
  borderWidth: 4.0,
  glowRadius: 10.0,
  duration: const Duration(seconds: 4),
  gradientPalettes: const [
    [Color(0xFF6B2AFF), Color(0xFF00E5FF)], // Purple to Cyan
    [Color(0xFFFF2A85), Color(0xFFFF992A)], // Pink to Orange
    [Color(0xFF00FF87), Color(0xFF60EFFF)], // Green to Blue
  ],
  child: Container(
    width: 250,
    height: 120,
    alignment: Alignment.center,
    child: const Text(
      "Sequential Glow Border",
      style: TextStyle(
        color: Colors.white,
        fontSize: 18,
      ),
    ),
  ),
)

For MultiColor Border

multicolor

ZoMultiColorBorder(
  colors: [
    Colors.orange,
    Colors.white,
    Colors.green,
    Colors.indigo,
    Colors.pink,
  ],
  strokeWidth: 3,
  borderRadius: 75,
  child: Padding(
    padding: const EdgeInsets.all(3.0),
    child: Container(
      width: 150,
      height: 150,
      alignment: Alignment.center,
      decoration: BoxDecoration(
        color: Colors.blue,
        shape: BoxShape.circle,
      ),
      child: Text(
        "MultiColor Border",
        style: TextStyle(color: Colors.white),
        textAlign: TextAlign.center,
      ),
    ),
  ),
)

For Text Border

circular_text

ZoTextBorder(
  text: "The Zerone",
  borderRadius: BorderRadius.circular(100),
  padding: 12,
  duration: const Duration(seconds: 12),
  textStyle: const TextStyle(
    color: Colors.greenAccent,
    fontSize: 12,
  ),
  child: Container(
    width: 150,
    height: 150,
    decoration: BoxDecoration(
      borderRadius: BorderRadius.circular(8),
    ),
    child: const Icon(
      Icons.shield,
      color: Colors.greenAccent,
      size: 50,
    ),
  ),
)

For Segmented Border

segment_border (online-video-cutter com) (1)
ZoSegmentBorder(
  borderRadius: 20,
  segmentLength: 0.2,
  glowOpacity: 1.0,
  glowRadius: 10,
  colors: const [
    Colors.cyanAccent,
    Colors.cyanAccent,
  ],
  child: Container(
    width: 250,
    height: 120,
    alignment: Alignment.center,
    child: const Text(
      "Zo Segment Border",
      style: TextStyle(
        color: Colors.white,
        fontSize: 18,
      ),
    ),
  ),
)

For Scribble Border

scribble_border

ZoScribbleBorder(
  borderColor: Colors.white,
  padding: const EdgeInsets.all(50),
  borderRadius: 100,
  child: ClipOval(
    child: Image.asset(
      'assets/pnglogo.png', // Replace with your asset
      width: 110,
      height: 110,
      fit: BoxFit.cover,
      errorBuilder: (context, error, stackTrace) =>
          const Icon(
            Icons.face,
            size: 80,
            color: Colors.orange,
          ),
    ),
  ),
),

For Ripple Border

ripple

ZoRippleEffect(
  rippleColor: Colors.cyanAccent,
  minCircleSize: 120,
  numberOfCircles: 4,
  animationDuration: const Duration(seconds: 4),
  child: const CircleAvatar(
    radius: 40,
    backgroundColor: Colors.cyanAccent,
    child: Icon(
      Icons.home,
      color: Colors.white,
      size: 30,
    ),
  ),
);

For Color Changing Border

new_border

ZoColorChangingBorder(
  borderRadius: 0,
  segmentLength: 0.2,
  colors: [
    Colors.orange,
    Colors.white,
    Colors.green,
  ],
  child: Padding(
    padding: const EdgeInsets.all(3.0),
    child: Container(
      width: 150,
      height: 150,
      alignment: Alignment.center,
      decoration: const BoxDecoration(
        color: Colors.blue,
      ),
      child: const Text(
        "Color Changing Border",
        textAlign: TextAlign.center,
        style: TextStyle(color: Colors.white),
      ),
    ),
  ),
);

For Signal Border

Simulator Screen Recording - iPhone 15 Pro - 2025-08-19 at 11 56 35 (online-video-cutter com)

ZoSignalBorder(
  maxRadius: 120,
  ringColors: [
    Colors.yellow,
    Colors.orange,
    Colors.red,
    Colors.purple,
    Colors.blue,
  ],
  child: Container(
    alignment: Alignment.center,
    width: 130,
    height: 130,
    decoration: BoxDecoration(
      color: Colors.white,
      shape: BoxShape.circle,
    ),
    child: const Text("Signal Border"),
  ),
);

For Dual border

dual

ZoDualBorder(
  glowOpacity: 0.4,
  firstBorderColor: Colors.yellow,
  secondBorderColor: Colors.orange,
  trackBorderColor: Colors.transparent,
  borderWidth: 8,
  borderRadius: BorderRadius.circular(10),
  child: Container(
    width: 150,
    height: 150,
    alignment: Alignment.center,
    decoration: BoxDecoration(
      color: Colors.white,
      borderRadius: BorderRadius.circular(10),
    ),
    child: Text(
      "Dual Border",
      style: TextStyle(
        color: Colors.black,
      ),
    ),
  ),
);

For Dotted border

dotted

ZoDottedBorder(
  child: Container(
    height: 100,
    width: 100,
    color: Colors.red,
    alignment: Alignment.center,
    child: Text(
      "MonoChrome",
      style: TextStyle(fontSize: 14, color: Colors.white),
    ),
  ),
  animate: true,
  borderRadius: 10,
  dashLength: 10,
  gapLength: 5,
  strokeWidth: 3,
  color: Colors.blue,
  borderStyle: BorderStyleType.monochrome,
);

For Breathing border

breathing

ZoBreathingBorder(
  borderWidth: 3.0,
  borderRadius: BorderRadius.circular(75),
  colors: [
    Colors.blue,
    Colors.purple,
    Colors.red,
    Colors.orange,
  ],
  animationDuration: const Duration(seconds: 4),
  child: Container(
    width: 150,
    height: 150,
    decoration: BoxDecoration(
      color: Colors.white,
      borderRadius: BorderRadius.circular(75),
    ),
    alignment: Alignment.center,
    child: const Text(
      'Breathing Border',
      textAlign: TextAlign.center,
      style: TextStyle(
        fontSize: 16,
        fontWeight: FontWeight.bold,
      ),
    ),
  ),
);

For Snake Border

snake_border

ZoSnakeBorder(
  glowOpacity: 0,
  snakeHeadColor: Colors.red,
  snakeTailColor: Colors.blue,
  snakeTrackColor: Colors.blueGrey,
  borderWidth: 5,
  borderRadius: BorderRadius.circular(10),
  child: Container(
    width: 150,
    height: 45,
    alignment: Alignment.center,
    decoration: BoxDecoration(
      color: Colors.white,
      borderRadius: BorderRadius.circular(10),
    ),
    child: Text(
      "Snake Border",
      style: TextStyle(color: Colors.black),
    ),
  ),
);

For GlowEdge Border

glowEdge

ZoGlowingEdgeBorder(
  gradientColors: [
    Colors.orange,
    Colors.white,
    Colors.green,
  ],
  child: Padding(
    padding: const EdgeInsets.all(3.0),
    child: Container(
      width: 150,
      height: 150,
      alignment: Alignment.center,
      decoration: const BoxDecoration(
        color: Colors.blue,
      ),
      child: const Text(
        "Glow Edge Border",
        textAlign: TextAlign.center,
        style: TextStyle(color: Colors.white),
      ),
    ),
  ),
);


For Pulsating border

pulse (online-video-cutter com)

ZoPulsatingBorder(
  type: ZoPulsatingBorderType.pulse,
  borderRadius: BorderRadius.circular(100),
  pulseColor: Colors.blue,
  child: Container(
    alignment: Alignment.center,
    width: 100,
    height: 100,
    decoration: BoxDecoration(
      color: Colors.red,
      borderRadius: BorderRadius.circular(50),
    ),
    child: Text(
      "Radar Pulse",
      style: TextStyle(color: Colors.white),
    ),
  ),
);

For MonoChrome border

mono_chrome (online-video-cutter com)

ZoMonoCromeBorder(
  trackBorderColor: Colors.white,
  cornerRadius: 50.0,
  borderStyle: ZoMonoCromeBorderStyle.mirror,
  borderWidth: 5.5,
  child: Container(
    width: 100,
    height: 100,
    alignment: Alignment.center,
    decoration: BoxDecoration(
      color: Colors.red,
      shape: BoxShape.circle,
    ),
    child: Text(
      "Mirror",
      style: TextStyle(color: Colors.white),
    ),
  ),
);

Feel free to post a feature requests or report a bug issues.

My Other packages

  • zo_micro_interactions: A curated set of high-quality Flutter micro-interactions designed for modern, polished apps.
  • zo_screenshot: The zo_screenshot plugin helps restrict screenshots and screen recording in Flutter apps, enhancing security and privacy by preventing unauthorized screen captures.
  • zo_collection_animation: A lightweight Flutter package to create smooth collect animations for coins carts
  • connectivity_watcher: A Flutter package to monitor internet connectivity with subsecond response times, even on mobile networks.
  • zo_app_blocker: A Flutter plugin to block specific applications on Android.
  • ultimate_extension: Enhances Dart collections and objects with utilities for advanced data manipulation and simpler coding.
  • theme_manager_plus: Allows customization of your app's theme with your own theme class, eliminating the need for traditional
  • date_util_plus: A powerful Dart API designed to augment and simplify date and time handling in your Dart projects.
  • pick_color: A Flutter package that allows you to extract colors and hex codes from images with a simple touch.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。