dashed_outline 0.1.2 copy "dashed_outline: ^0.1.2" to clipboard
dashed_outline: ^0.1.2 copied to clipboard

A Flutter package to easily add dashed borders around widgets.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("Dashed Outline Example")),
        body: Center(
          child: DashedOutline(
            borderType: BorderType.rRect,
            radius: 12,
            dashPattern: [6, 3, 2, 3],
            child: Container(
              height: 150,
              width: 100,
              color: Colors.amber,
            ),
          ),
        ),
      ),
    );
  }
}
12
likes
155
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to easily add dashed borders around widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path_drawing

More

Packages that depend on dashed_outline