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 createState() => _TxtFieldState(); } class _TxtFieldState extends State { @override Widget build(BuildContext context) { return TextField(); } }