2022-03-30 22:39:49 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class RowInput extends StatelessWidget {
|
2022-04-14 21:57:32 +02:00
|
|
|
const RowInput(
|
|
|
|
{Key? key,
|
|
|
|
required this.label,
|
|
|
|
required this.controller,
|
|
|
|
this.obscureText = false})
|
2022-03-30 22:39:49 +02:00
|
|
|
: super(key: key);
|
|
|
|
|
|
|
|
final String label;
|
|
|
|
final TextEditingController controller;
|
2022-04-14 21:57:32 +02:00
|
|
|
final bool obscureText;
|
2022-03-30 22:39:49 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return SizedBox(
|
|
|
|
width: 400,
|
|
|
|
height: 70,
|
|
|
|
child: Expanded(
|
|
|
|
child: TextField(
|
|
|
|
controller: controller,
|
2022-04-14 21:57:32 +02:00
|
|
|
obscureText: obscureText,
|
2022-03-30 22:39:49 +02:00
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: label,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|