mobile_nebula/lib/components/config/ConfigTextItem.dart

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
603 B
Dart
Raw Normal View History

2020-07-27 20:43:58 +00:00
import 'package:flutter/cupertino.dart';
class ConfigTextItem extends StatelessWidget {
const ConfigTextItem({
Key? key,
this.placeholder,
this.controller,
this.style = const TextStyle(fontFamily: 'RobotoMono'),
}) : super(key: key);
2020-07-27 20:43:58 +00:00
final String? placeholder;
final TextEditingController? controller;
final TextStyle style;
2020-07-27 20:43:58 +00:00
@override
Widget build(BuildContext context) {
return CupertinoTextFormFieldRow(
autocorrect: false,
minLines: 3,
maxLines: 10,
placeholder: placeholder,
style: style,
controller: controller,
);
2020-07-27 20:43:58 +00:00
}
}