mirror of
https://bitbucket.org/myhomie/myhomie_app.git
synced 2025-12-06 00:51:19 +00:00
34 lines
898 B
Dart
34 lines
898 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:myhomie_app/Components/text_field_container.dart';
|
|
import 'package:myhomie_app/constants.dart';
|
|
|
|
class RoundedPasswordField extends StatelessWidget {
|
|
final ValueChanged<String>? onChanged;
|
|
const RoundedPasswordField({
|
|
Key? key,
|
|
this.onChanged,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return TextFieldContainer(
|
|
child: TextField(
|
|
obscureText: true,
|
|
onChanged: onChanged,
|
|
cursorColor: kBodyTextColor, // TODO
|
|
decoration: InputDecoration(
|
|
hintText: "Password",
|
|
icon: Icon(
|
|
Icons.lock,
|
|
color: kBodyTextColor, // TODO
|
|
),
|
|
suffixIcon: Icon(
|
|
Icons.visibility,
|
|
color: kBodyTextColor, // TODO
|
|
),
|
|
border: InputBorder.none,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |