null_safety
张萌 4 years ago
parent 6c8a2d1505
commit 44ebadd319

@ -19,15 +19,15 @@ class _ExampaleTagState extends State<ExampleTag> {
children: [
ListTile(
title: Text('yellowSolid'),
trailing: ASTag.yellowSolid('带电'),
trailing: ASTag.yellowSolid('带电',),
),
ListTile(
title: Text('redHollow'),
trailing: ASTag.redHollow('带磁'),
trailing: ASTag.redHollow('带磁',width: 36.w,),
),
ListTile(
title: Text('yellowHollow'),
trailing: ASTag.yellowHollow('选填'),
trailing: ASTag.yellowHollow('选填',width: 36.w,),
),
ListTile(
title: Text('redHollow'),

@ -115,10 +115,9 @@ class _ASTagState extends State<ASTag> {
@override
Widget build(BuildContext context) {
return Container(
padding: widget.padding ?? EdgeInsets.symmetric(horizontal: 6.w),
alignment: Alignment.center,
padding: widget.padding ?? EdgeInsets.symmetric(horizontal: 6.w,vertical: 2.w),
width: widget.width,
height: widget.height ?? 18.w,
height: widget.height,
decoration: BoxDecoration(
color: widget.bgColor ?? kDarkPrimaryColor,
border: widget.outline

Loading…
Cancel
Save