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