flexi_border 0.0.6 copy "flexi_border: ^0.0.6" to clipboard
flexi_border: ^0.0.6 copied to clipboard

FlexiBorder is a Flutter widget that draws fully customizable per-side borders—solid or dashed—with half/full lengths and per-side offsets.

example/main.dart

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

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Center(
          child: FlexiBorder(
            borderColor: Colors.green,
            strokeWidth: 1,
            dashPattern: [1, 1],
            drawTop: true,
            drawRight: true,
            drawBottom: true,
            drawLeft: true,
            borderMode: BorderMode.full,
            child: Container(
              padding: const EdgeInsets.all(32),
              color: Colors.transparent,
              child: const Text("Flexi Border", style: TextStyle(color: Colors.white)),
            ),
          ),
        ),
      ),
    );
  }
}
2
likes
140
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

FlexiBorder is a Flutter widget that draws fully customizable per-side borders—solid or dashed—with half/full lengths and per-side offsets.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dotted_border, flutter

More

Packages that depend on flexi_border