1
0
Fork 0
mrtiboute/lib/widgets/components/row_input.dart

31 lines
667 B
Dart

import 'package:flutter/material.dart';
class RowInput extends StatelessWidget {
const RowInput(
{Key? key,
required this.label,
required this.controller,
this.obscureText = false})
: super(key: key);
final String label;
final TextEditingController controller;
final bool obscureText;
@override
Widget build(BuildContext context) {
return SizedBox(
width: 400,
height: 70,
child: Expanded(
child: TextField(
controller: controller,
obscureText: obscureText,
decoration: InputDecoration(
hintText: label,
),
),
),
);
}
}