Fix profile header: revert compact threshold to 240, reduce avatar 46->44 and bottom padding 12->6 to fix 9px overflow without hiding follows
This commit is contained in:
parent
4903117bbf
commit
bb1c7c7843
|
|
@ -1411,12 +1411,12 @@ class _ProfileHeader extends StatelessWidget {
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
final isCompact = constraints.maxHeight < 280;
|
final isCompact = constraints.maxHeight < 240;
|
||||||
final avatarRadius = isCompact ? 38.0 : 46.0;
|
final avatarRadius = isCompact ? 38.0 : 44.0;
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: 0,
|
top: 0,
|
||||||
bottom: isCompact ? 4 : 12,
|
bottom: isCompact ? 4 : 6,
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue