pin_dot 1.0.3 icon indicating copy to clipboard operation
pin_dot: ^1.0.3 copied to clipboard

A Pin Dot Flutter package. Make it easy to use and minimal code.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'PIN DOT',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  final TextEditingController _pinController = TextEditingController();

  @override
  void initState() {
    _pinController.text = '12';
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('PIN DOT')),
      body: Center(
        child: PinDot(
          size: 13,
          length: 4,
          controller: _pinController,
          activeColor: Colors.blue[700],
          borderColor: Colors.yellow[700],
        ),
      ),
    );
  }
}
1
likes
130
pub points
66%
popularity

Publisher

verified publisher iconwachasit.com

A Pin Dot Flutter package. Make it easy to use and minimal code.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on pin_dot