word_generator 0.4.0 copy "word_generator: ^0.4.0" to clipboard
word_generator: ^0.4.0 copied to clipboard

A dart based util package for generating random nouns, verbs, names, strong password and validate the given password is strong or not. This package helps you to generate random words and passwords for [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:word_generator/word_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> {
  helloFunction() {
    final wordGenerator = WordGenerator();
    print(wordGenerator.randomName());

    final password = PasswordGenerator();
    print(password.validatePassword('abcABC123!@#'));
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Material App Bar'),
        ),
        body: Center(
          child: GestureDetector(
            onTap: () => helloFunction(),
            child: const Text('Hello World'),
          ),
        ),
      ),
    );
  }
}
11
likes
0
pub points
85%
popularity

Publisher

verified publisherkathirvelchandrasekaran.online

A dart based util package for generating random nouns, verbs, names, strong password and validate the given password is strong or not. This package helps you to generate random words and passwords for your project without any hassle.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on word_generator