bordered 0.2.1 copy "bordered: ^0.2.1" to clipboard
bordered: ^0.2.1 copied to clipboard

Create variable-width, gradient-colored borders with adjustable chamfer depth and automatic animation.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Transform.scale(
            scale: 3,
            child: AnimatedBordered(
              duration: const Duration(seconds: 1),
              elevation: 30,
              borderRadius: const BorderRadius.all(Radius.elliptical(40, 40))
                  .withDepth(1),
              border: UiBorder.all(
                width: 5,
                strokeAlign: -1,
              ),
              child: Container(
                width: 200,
                height: 200,
                color: Colors.blue,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
3
likes
160
points
72
downloads

Publisher

unverified uploader

Weekly Downloads

Create variable-width, gradient-colored borders with adjustable chamfer depth and automatic animation.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

animated_value, flutter

More

Packages that depend on bordered