删除默认padding

null_safety
张萌 4 years ago
parent 96e34b4adc
commit 90d32f6c5d

@ -34,8 +34,6 @@ class ASOptionTile extends StatelessWidget {
this.items.insert( this.items.insert(
0, 0,
Container( Container(
clipBehavior: Clip.antiAlias,
padding: EdgeInsets.fromLTRB(10.w, 10.w, 10.w, 10.w),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: this.leading is String child: this.leading is String
? Text( ? Text(
@ -50,6 +48,7 @@ class ASOptionTile extends StatelessWidget {
); );
} }
return Material( return Material(
clipBehavior: Clip.antiAlias,
color: kForegroundColor, color: kForegroundColor,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5.w), borderRadius: BorderRadius.circular(5.w),

Loading…
Cancel
Save