dotted_box 0.0.2 copy "dotted_box: ^0.0.2" to clipboard
dotted_box: ^0.0.2 copied to clipboard

A flutter package which will help you to generate dotted box. Can be useful for form designs which includes attachment sections.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            DottedBox(height: 300, width: 300),
          ],
        ),
      ),
    );
  }
}
6
likes
150
pub points
63%
popularity

Publisher

verified publishercooltechie.info

A flutter package which will help you to generate dotted box. Can be useful for form designs which includes attachment sections.

Repository (GitHub)
View/report issues

Topics

#dotted-border #dotted-box #dotted #outline

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dotted_box