passwordgrid 0.0.1 copy "passwordgrid: ^0.0.1" to clipboard
passwordgrid: ^0.0.1 copied to clipboard

Flutter Package to generate passwordgrid. This package supports iOS, Android, MacOS and web.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:passwordgrid/main.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Password Grid Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: GridExample(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    // pass grid configuration
    GridConfig config = GridConfig(
      numbers: true,
      alphaUpper: true,
      alphaLower: true,
      symbols: false,
      gridSize: 8, // max size is 8 and min size is 5
    );
    // or Optionally pass GridConfig or use default values
    // GridConfig? config;

    PasswordGrid passwordGrid = PasswordGrid(config: config);
    return Scaffold(
      appBar: AppBar(
        title: Text('Password Grid Example'),
        backgroundColor: Colors.green,
        centerTitle: true,
        titleTextStyle: TextStyle(
          color: Colors.white,
          fontSize: 24,
        ),
      ),
      body: Center(
        child: passwordGrid,
      ),
    );
  }
}
1
likes
150
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter Package to generate passwordgrid. This package supports iOS, Android, MacOS and web.

Homepage
Repository (GitHub)
View/report issues

Topics

#password #passwordgrid #secure-password #password-generator

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on passwordgrid