3
0
Fork 0
trifid_mobile/lib/components/config/ConfigTextItem.dart

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

29 lines
840 B
Dart
Raw Normal View History

2020-07-27 20:43:58 +00:00
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:mobile_nebula/components/SpecialTextField.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 Padding(
padding: Platform.isAndroid ? EdgeInsets.all(5) : EdgeInsets.zero,
child: SpecialTextField(
autocorrect: false,
minLines: 3,
maxLines: 10,
placeholder: placeholder,
style: style,
2020-07-27 20:43:58 +00:00
controller: controller));
}
}