dashed_outline 0.0.9
dashed_outline: ^0.0.9 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({Key? key}) : super(key: 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,
),
),
),
),
);
}
}