dotted_border 0.1.1 dotted_border: ^0.1.1 copied to clipboard
A flutter package to let users easily add a rectanfular dashed border around any widget.
import 'package:flutter/material.dart';
import 'package:dotted_border/dotted_border.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Dotted Border'),
),
body: Center(
child: Container(
child: DottedBorder(
color: Colors.black,
gap: 3,
strokeWidth: 1,
child: FlutterLogo(size: 148),
),
),
),
),
);
}
}