123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- import 'package:flutter/material.dart';
-
- class InputWidgetCurrentPassword extends StatelessWidget {
- final String hintText;
-
- InputWidgetCurrentPassword(this.hintText);
-
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: EdgeInsets.only(bottom: 15),
- child: Container(
- width: MediaQuery.of(context).size.width,
- child: Material(
- elevation: 10,
- color: Colors.white,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.all(Radius.circular(10))),
- child: Padding(
- padding: EdgeInsets.only(left: 5, right: 5),
- child: TextFormField(
- controller: passwordController,
- textInputAction: TextInputAction.next,
- obscureText: true,
- decoration: InputDecoration(
- border: InputBorder.none,
- hintText: hintText,
- hintStyle: TextStyle(color: Color(0xFFE1E1E1), fontSize: 16)),
- ),
- ),
- ),
- ),
- );
- }
- }
-
- class InputWidgetNewPassword extends StatelessWidget {
- final String hintText;
-
- InputWidgetNewPassword(this.hintText);
-
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: EdgeInsets.only(bottom: 15),
- child: Container(
- width: MediaQuery.of(context).size.width,
- child: Material(
- elevation: 10,
- color: Colors.white,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.all(Radius.circular(10))),
- child: Padding(
- padding: EdgeInsets.only(left: 5, right: 5),
- child: TextFormField(
- controller: newPasswordController,
- textInputAction: TextInputAction.next,
- obscureText: true,
- decoration: InputDecoration(
- border: InputBorder.none,
- hintText: hintText,
- hintStyle: TextStyle(color: Color(0xFFE1E1E1), fontSize: 16)),
- ),
- ),
- ),
- ),
- );
- }
- }
-
- class InputWidgetRetypeNewPassword extends StatelessWidget {
- final String hintText;
-
- InputWidgetRetypeNewPassword(this.hintText);
-
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: EdgeInsets.only(bottom: 15),
- child: Container(
- width: MediaQuery.of(context).size.width,
- child: Material(
- elevation: 10,
- color: Colors.white,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.all(Radius.circular(10))),
- child: Padding(
- padding: EdgeInsets.only(left: 5, right: 5),
- child: TextFormField(
- controller: retypeNewPasswordController,
- textInputAction: TextInputAction.done,
- obscureText: true,
- decoration: InputDecoration(
- border: InputBorder.none,
- hintText: hintText,
- hintStyle: TextStyle(color: Color(0xFFE1E1E1), fontSize: 16)),
- ),
- ),
- ),
- ),
- );
- }
- }
-
- TextEditingController passwordController = TextEditingController();
- TextEditingController newPasswordController = TextEditingController();
- TextEditingController retypeNewPasswordController = TextEditingController();
|