git-touch-android-ios-app/lib/widgets/text_field.dart

18 lines
492 B
Dart

import 'package:antd_mobile/antd_mobile.dart';
import 'package:flutter/cupertino.dart';
class MyTextField extends StatelessWidget {
const MyTextField({required this.controller, this.placeholder});
final TextEditingController controller;
final String? placeholder;
@override
Widget build(BuildContext context) {
return CupertinoTextField(
controller: controller,
placeholder: placeholder,
style: TextStyle(color: AntTheme.of(context).colorText),
);
}
}