mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
improve ui
This commit is contained in:
@@ -68,18 +68,23 @@ class _IllustWidgetState extends State<IllustWidget> {
|
|||||||
height: height,
|
height: height,
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.symmetric(horizontal: 8.0, vertical: 8.0),
|
const EdgeInsets.symmetric(horizontal: 8.0, vertical: 8.0),
|
||||||
child: Card(
|
child: Container(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
margin: EdgeInsets.zero,
|
decoration: BoxDecoration(
|
||||||
borderColor: () {
|
borderRadius: BorderRadius.circular(4.0),
|
||||||
return widget.illust.author.isFollowed &&
|
border: () {
|
||||||
|
var emphasis = widget.illust.author.isFollowed &&
|
||||||
appdata.settings[
|
appdata.settings[
|
||||||
'emphasizeArtworksFromFollowingArtists']
|
'emphasizeArtworksFromFollowingArtists'];
|
||||||
? ColorScheme.of(context).primary
|
var color = emphasis
|
||||||
: ColorScheme.of(context)
|
? ColorScheme.of(context).primary
|
||||||
.outlineVariant
|
: ColorScheme.of(context)
|
||||||
.withOpacity(0.64);
|
.outlineVariant
|
||||||
}(),
|
.withOpacity(0.64);
|
||||||
|
var width = emphasis ? 1.6 : 1.0;
|
||||||
|
return Border.all(color: color, width: width);
|
||||||
|
}()),
|
||||||
|
margin: EdgeInsets.zero,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: widget.onTap ??
|
onTap: widget.onTap ??
|
||||||
() {
|
() {
|
||||||
|
Reference in New Issue
Block a user