Add flutter_hide_show_password_input
to your pubspec.yamlfile
.
import 'package:flutter/material.dart';
import 'package:flutter_hide_show_password_input/flutter_hide_show_password_input.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
color: Colors.grey,
home: Scaffold(
appBar: AppBar(
title: Text('Password Input Text'),
backgroundColor: Colors.black87,
),
body: Container(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: PasswordInputText(),
)),
),
);
}
}