💄 Optimize featured reply style
This commit is contained in:
parent
ce16de9c71
commit
62733bf29f
@ -1,6 +1,7 @@
|
|||||||
import 'package:animations/animations.dart';
|
import 'package:animations/animations.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
|
import 'package:flutter_animate/flutter_animate.dart';
|
||||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
import 'package:gap/gap.dart';
|
import 'package:gap/gap.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@ -362,7 +363,7 @@ class _PostItemState extends State<PostItem> {
|
|||||||
locale: 'en_short',
|
locale: 'en_short',
|
||||||
),
|
),
|
||||||
).paddingOnly(top: 0.5),
|
).paddingOnly(top: 0.5),
|
||||||
const Gap(16),
|
const Gap(8),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
@ -399,15 +400,22 @@ class _PostItemState extends State<PostItem> {
|
|||||||
)
|
)
|
||||||
.toList(),
|
.toList(),
|
||||||
),
|
),
|
||||||
).paddingOnly(
|
)
|
||||||
top: (attachments.length == 1 && !AppTheme.isLargeScreen(context))
|
.animate()
|
||||||
? 10
|
.fadeIn(
|
||||||
: 6,
|
duration: 300.ms,
|
||||||
left: (attachments.length == 1 && !AppTheme.isLargeScreen(context))
|
curve: Curves.easeIn,
|
||||||
? 24
|
)
|
||||||
: 60,
|
.paddingOnly(
|
||||||
right: 16,
|
top: (attachments.length == 1 && !AppTheme.isLargeScreen(context))
|
||||||
);
|
? 10
|
||||||
|
: 6,
|
||||||
|
left:
|
||||||
|
(attachments.length == 1 && !AppTheme.isLargeScreen(context))
|
||||||
|
? 24
|
||||||
|
: 60,
|
||||||
|
right: 16,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user