Page profile OK
This commit is contained in:
29
em2rp/lib/views/widgets/inputs/styled_text_field.dart
Normal file
29
em2rp/lib/views/widgets/inputs/styled_text_field.dart
Normal file
@ -0,0 +1,29 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class StyledTextField extends StatelessWidget {
|
||||
final String labelText;
|
||||
final TextEditingController controller;
|
||||
final bool enabled;
|
||||
|
||||
const StyledTextField({
|
||||
Key? key,
|
||||
required this.labelText,
|
||||
required this.controller,
|
||||
this.enabled = true,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: TextField(
|
||||
controller: controller,
|
||||
enabled: enabled,
|
||||
decoration: InputDecoration(
|
||||
labelText: labelText,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user