28 lines
696 B
Dart
28 lines
696 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../fcs/common/helpers/theme.dart';
|
|
|
|
class FCSTextFieldReadOnly extends StatelessWidget {
|
|
final TextEditingController controller;
|
|
final String label;
|
|
|
|
const FCSTextFieldReadOnly({Key key, this.controller, this.label})
|
|
: super(key: key);
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return TextFormField(
|
|
maxLines: null,
|
|
minLines: 2,
|
|
controller: controller,
|
|
cursorColor: primaryColor,
|
|
readOnly: true,
|
|
textAlign: TextAlign.left,
|
|
decoration: InputDecoration(
|
|
border: InputBorder.none,
|
|
labelText: label,
|
|
contentPadding: EdgeInsets.all(10.0),
|
|
),
|
|
);
|
|
}
|
|
}
|