flutter_password_generator 1.0.1 copy "flutter_password_generator: ^1.0.1" to clipboard
flutter_password_generator: ^1.0.1 copied to clipboard

Generate strong passwords for flutter applications based on secure, random and unique data created in native without dependencies

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:flutter_password_generator/flutter_password_generator.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _flutterPasswordGeneratorPlugin = FlutterPasswordGenerator(length: 24);

  void genPassword() async {
    try {
      final key = await _flutterPasswordGeneratorPlugin.generatePassword();
      print('pw: ${key}');
    } catch (e) {
      print(e);
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on:'),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: genPassword,
          tooltip: 'Increment',
          child: const Icon(Icons.add),
        ),
      ),
    );
  }
}
2
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

Generate strong passwords for flutter applications based on secure, random and unique data created in native without dependencies

Repository (GitHub)
View/report issues

Topics

#password-generator #password-manager #password #password-strength #password-safety

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_password_generator

Packages that implement flutter_password_generator