This package allows you to create a rotating rainbow border. For more information, see the documentation below.
Install the package using the following command:
flutter pub add flutter_rainbow_borderImport the package in your dart file using the following code:
import 'package:flutter_rainbow_border/flutter_rainbow_border.dart';RainbowBorder(
width: 300,
height: 300,
border: 4,
borderRadius: 10,
),
| Property | Type | Description |
|---|---|---|
width |
double | Container width |
height |
double | Container height |
border |
double | Border thickness |
borderRadius |
double | Border corner radius |
isRotating |
bool | Enables rotation |
fixedRotation |
double | Fixed rotation angle (range: 0~360 degrees) |
isClockwise |
bool | Rotation direction (default: true) |
rotationDuration |
Duration | Determine the rotation speed (default: 3 seconds) |
backgroundColor |
Color | Background color (default: transparent) |
child |
Widget | Child widget inside |
This package is developed by Jungi Kim.