32 lines
667 B
Dart
32 lines
667 B
Dart
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();
|
|
}
|
|
}
|