mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
23 lines
631 B
Dart
23 lines
631 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:toolbox/view/widget/round_rect_card.dart';
|
|
|
|
Widget buildInput(BuildContext context, TextEditingController controller,
|
|
{int maxLines = 20,
|
|
String? hint,
|
|
Function(String)? onSubmitted,
|
|
bool? obscureText}) {
|
|
return RoundRectCard(
|
|
TextField(
|
|
maxLines: maxLines,
|
|
onSubmitted: onSubmitted,
|
|
decoration: InputDecoration(
|
|
fillColor: Theme.of(context).cardColor,
|
|
hintText: hint,
|
|
filled: true,
|
|
border: InputBorder.none),
|
|
controller: controller,
|
|
obscureText: obscureText ?? false,
|
|
),
|
|
);
|
|
}
|