mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
push calling create scene
This commit is contained in:
@ -18,6 +18,7 @@ class StatefulTextField extends StatefulWidget {
|
||||
this.padding,
|
||||
this.icon,
|
||||
this.hintColor,
|
||||
required this.onChanged,
|
||||
});
|
||||
|
||||
final String title;
|
||||
@ -32,6 +33,7 @@ class StatefulTextField extends StatefulWidget {
|
||||
final double? padding;
|
||||
final IconData? icon;
|
||||
final Color? hintColor;
|
||||
final Function(String)? onChanged;
|
||||
|
||||
@override
|
||||
State<StatefulTextField> createState() => _StatefulTextFieldState();
|
||||
@ -59,6 +61,7 @@ class _StatefulTextFieldState extends State<StatefulTextField> {
|
||||
padding: widget.padding,
|
||||
icon: widget.icon,
|
||||
hintColor: widget.hintColor,
|
||||
onChanged: widget.onChanged,
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -78,6 +81,7 @@ class CustomTextField extends StatelessWidget {
|
||||
this.padding,
|
||||
this.icon,
|
||||
this.hintColor,
|
||||
required this.onChanged,
|
||||
});
|
||||
|
||||
final String title;
|
||||
@ -92,6 +96,7 @@ class CustomTextField extends StatelessWidget {
|
||||
final double? padding;
|
||||
final IconData? icon;
|
||||
final Color? hintColor;
|
||||
final Function(String)? onChanged;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -120,14 +125,21 @@ class CustomTextField extends StatelessWidget {
|
||||
style: const TextStyle(color: Colors.black),
|
||||
decoration: InputDecoration(
|
||||
hintText: hintText,
|
||||
hintStyle: TextStyle(fontSize: 12, color: hintColor ?? ColorsManager.blackColor),
|
||||
contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: padding ?? 10),
|
||||
hintStyle: TextStyle(
|
||||
fontSize: 12, color: hintColor ?? ColorsManager.blackColor),
|
||||
contentPadding: EdgeInsets.symmetric(
|
||||
horizontal: 12, vertical: padding ?? 10),
|
||||
border: InputBorder.none,
|
||||
suffixIcon: icon != null ? Icon(icon, color: ColorsManager.greyColor) : null,
|
||||
suffixIcon: icon != null
|
||||
? Icon(icon, color: ColorsManager.greyColor)
|
||||
: null,
|
||||
),
|
||||
onFieldSubmitted: (_) {
|
||||
onSubmittedFun!();
|
||||
},
|
||||
onChanged: (value) {
|
||||
onChanged!(value);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user