shimmer_border_container 1.0.1 copy "shimmer_border_container: ^1.0.1" to clipboard
shimmer_border_container: ^1.0.1 copied to clipboard

A customizable shimmer border container for Flutter with resizable components and customizable content.

shimmer_border_container #

A customizable shimmer border container for Flutter with animated gradient borders and resizable components. Perfect for creating elegant glowing buttons or highlight containers.

📽 Demo #

Screen Recording 2025-03-19 at 12 54 37 AM

Features #

  • Animated shimmer border effect
  • Customizable border width and radius
  • Adjustable shimmer speed and gradient color
  • Add any child widget inside (text, icon, images, etc.)

Installation #

Add this to your pubspec.yaml:

dependencies:
  shimmer_border_container: ^1.0.0

Usage #

import 'package:shimmer_border_container/shimmer_border_container.dart';

ShimmerBorderContainer(
  width: 280,
  height: 70,
  borderRadius: 12,
  shimmerSpeed: Duration(milliseconds: 600),
  borderWidth: 1.0,
  shimmerColor: Colors.white,
  backgroundColor: Colors.white.withOpacity(0.05),
  child: const Text(
    'Join Community',
    style: TextStyle(
      fontSize: 22,
      color: Colors.white,
      fontWeight: FontWeight.w500,
    ),
  ),
)

Example #

A complete example is available in the example/ directory.

Example main.dart #

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: const Color(0xFF0F1113),
        body: Center(
          child: ShimmerBorderContainer(
            width: 300,
            height: 80,
            borderRadius: 15,
            shimmerSpeed: const Duration(milliseconds: 500),
            borderWidth: 1,
            shimmerColor: Colors.white,
            backgroundColor: Colors.white.withOpacity(0.05),
            child: const Text(
              'Join Community',
              style: TextStyle(
                fontSize: 24,
                color: Colors.white,
                fontWeight: FontWeight.bold,
              ),
            ),
          ),
        ),
      ),
    );
  }
}

License #

BSD 3-Clause License.
See the LICENSE file for details.


7
likes
140
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable shimmer border container for Flutter with resizable components and customizable content.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on shimmer_border_container