improve ui

This commit is contained in:
nyne
2024-10-02 16:29:45 +08:00
parent c8d4b3db88
commit 63aa4ee8b0

View File

@@ -66,12 +66,15 @@ class _IllustWidgetState extends State<IllustWidget> {
child: Container( child: Container(
width: width, width: width,
height: height, height: height,
padding: padding: const EdgeInsets.symmetric(
const EdgeInsets.symmetric(horizontal: 8.0, vertical: 8.0), horizontal: 8.0, vertical: 8.0),
child: Container( child: Container(
width: double.infinity,
height: double.infinity,
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4.0), borderRadius: BorderRadius.circular(4.0),
color: FluentTheme.of(context).cardColor,
border: () { border: () {
var emphasis = widget.illust.author.isFollowed && var emphasis = widget.illust.author.isFollowed &&
appdata.settings[ appdata.settings[
@@ -83,7 +86,8 @@ class _IllustWidgetState extends State<IllustWidget> {
.withOpacity(0.64); .withOpacity(0.64);
var width = emphasis ? 1.6 : 1.0; var width = emphasis ? 1.6 : 1.0;
return Border.all(color: color, width: width); return Border.all(color: color, width: width);
}()), }(),
),
margin: EdgeInsets.zero, margin: EdgeInsets.zero,
child: GestureDetector( child: GestureDetector(
onTap: widget.onTap ?? onTap: widget.onTap ??
@@ -104,7 +108,8 @@ class _IllustWidgetState extends State<IllustWidget> {
), ),
), ),
), ),
)), ),
),
if (widget.illust.images.length > 1) if (widget.illust.images.length > 1)
Positioned( Positioned(
top: 12, top: 12,