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

outdated

A new Flutter plugin for password criteria

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:password_criteria/password_criteria.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(

        primarySwatch: Colors.blue,
      ),
      home: PasswordCriteria(title: 'Flutter Demo Home Page'),
    );
  }
}

class PasswordCriteria extends StatefulWidget {
  @override
  PasswordCriteriaPageState createState() => PasswordCriteriaPageState();

  PasswordCriteria({Key key, this.title}) : super(key: key);
  final String title;
}

class PasswordCriteriaPageState extends State<PasswordCriteria> {
  String password;

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("Password Crtiteria"),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            Container(
              child: TextField(
                onChanged: (value) {
                  setState(() {
                    password = value;
                  });
                   //PasswordStrengthPage(value);
                },
              ),
            ),
            Container(
              child: PasswordStrengthPage(password),
            )
          ],
        ),
      ),
      // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
19
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter plugin for password criteria

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

bloc, equatable, flutter, flutter_bloc, meta

More

Packages that depend on password_criteria