update search text field

null_safety
张萌 4 years ago
parent c158b77855
commit f24b1556c6

@ -13,6 +13,7 @@ class ASSearchTextField extends StatefulWidget implements PreferredSizeWidget {
this.onSubmitted,
this.margin,
this.onPressed,
this.width,
}) : button = false,
super(key: key);
@ -26,6 +27,7 @@ class ASSearchTextField extends StatefulWidget implements PreferredSizeWidget {
this.onSubmitted,
this.margin,
this.onPressed,
this.width,
}) : button = true,
super(key: key);
@ -52,6 +54,9 @@ class ASSearchTextField extends StatefulWidget implements PreferredSizeWidget {
final VoidCallback onPressed;
///
final double width;
@override
_ASSearchTextFieldState createState() => _ASSearchTextFieldState();
@ -76,6 +81,7 @@ class _ASSearchTextFieldState extends State<ASSearchTextField> {
vertical: 3.w,
),
child: MaterialButton(
minWidth: widget.width,
padding: EdgeInsets.zero,
color: Color(0xFFF8F8F8),
elevation: 0,

Loading…
Cancel
Save