modfiy
This commit is contained in:
27
lib/widget/fcs_text_field_readonly.dart
Normal file
27
lib/widget/fcs_text_field_readonly.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../theme/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),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user