mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
reduce iconsize if width is too small
This commit is contained in:
@@ -157,14 +157,16 @@ class _Thumbnail extends State<Thumbnail> {
|
|||||||
final isLoading = _data == null && _error == null;
|
final isLoading = _data == null && _error == null;
|
||||||
final isNsfw = widget._pMeta.isNsfw;
|
final isNsfw = widget._pMeta.isNsfw;
|
||||||
if (isLoading && !_isLoading) _fetchData();
|
if (isLoading && !_isLoading) _fetchData();
|
||||||
final iconSize = Theme.of(context).iconTheme.size;
|
final iconSize = MediaQuery.of(context).size.width < 400
|
||||||
|
? 14.0
|
||||||
|
: Theme.of(context).iconTheme.size;
|
||||||
final moreVertMenu = Positioned(
|
final moreVertMenu = Positioned(
|
||||||
right: 0,
|
right: 0,
|
||||||
top: 0,
|
top: 0,
|
||||||
width: iconSize,
|
width: iconSize,
|
||||||
height: iconSize,
|
height: iconSize,
|
||||||
child: PopupMenuButton(
|
child: PopupMenuButton(
|
||||||
icon: const Icon(Icons.more_vert),
|
child: Icon(Icons.more_vert, size: iconSize),
|
||||||
onSelected: (v) {
|
onSelected: (v) {
|
||||||
onItemSelected(v);
|
onItemSelected(v);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user