DiscoverModule/lib/custom_widget/textfield.dart

32 lines
667 B
Dart
Raw Permalink Normal View History

2024-05-20 10:29:02 +00:00
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
// ignore: must_be_immutable
class TxtField extends StatefulWidget {
TxtField(
{super.key,
required this.text,
this.voidCallback,
this.contentPadding,
this.icon,
this.border,
this.decoration});
final String? text;
final VoidCallback? voidCallback;
final Padding? contentPadding;
Icon? icon;
Border? border;
Decoration? decoration;
@override
State<TxtField> createState() => _TxtFieldState();
}
class _TxtFieldState extends State<TxtField> {
@override
Widget build(BuildContext context) {
return TextField();
}
}