Input Type Password
Complete Code For Input Type Password In Flutter
Main.dart
import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: Scaffold( appBar: AppBar( backgroundColor: Colors.pink, title: Text('Input type Password'), centerTitle: true, ), body: Padding( padding: const EdgeInsets.all(30.0), child: Container( child: Container( width: 300, child: TextField( decoration: InputDecoration( border: OutlineInputBorder(), hintText: 'Enter Password Here', ), autofocus: false, obscureText: true, ) ) ), ) ) ); } }