mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
new: docker icon
This commit is contained in:
@@ -116,7 +116,7 @@ class _ServerDetailPageState extends State<ServerDetailPage>
|
||||
itemCount: buildFuncs ? _cardsOrder.length + 1 : _cardsOrder.length,
|
||||
itemBuilder: (context, index) {
|
||||
if (index == 0 && buildFuncs) {
|
||||
return ServerFuncBtns(spi: widget.spi, iconSize: 19);
|
||||
return ServerFuncBtns(spi: widget.spi);
|
||||
}
|
||||
if (buildFuncs) index--;
|
||||
return _cardBuildMap[_cardsOrder[index]]?.call(si.status);
|
||||
|
||||
@@ -41,7 +41,7 @@ class ServerFuncBtnsTopRight extends StatelessWidget {
|
||||
value: e,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(e.icon),
|
||||
e.icon,
|
||||
const SizedBox(
|
||||
width: 10,
|
||||
),
|
||||
@@ -60,11 +60,9 @@ class ServerFuncBtns extends StatelessWidget {
|
||||
const ServerFuncBtns({
|
||||
super.key,
|
||||
required this.spi,
|
||||
this.iconSize,
|
||||
});
|
||||
|
||||
final ServerPrivateInfo spi;
|
||||
final double? iconSize;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -86,7 +84,7 @@ class ServerFuncBtns extends StatelessWidget {
|
||||
onPressed: () => _onTapMoreBtns(e, spi, context),
|
||||
padding: EdgeInsets.zero,
|
||||
tooltip: e.toStr,
|
||||
icon: Icon(e.icon, size: iconSize ?? 15),
|
||||
icon: e.icon,
|
||||
)
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(bottom: 13),
|
||||
@@ -96,7 +94,7 @@ class ServerFuncBtns extends StatelessWidget {
|
||||
IconButton(
|
||||
onPressed: () => _onTapMoreBtns(e, spi, context),
|
||||
padding: EdgeInsets.zero,
|
||||
icon: Icon(e.icon, size: iconSize ?? 15),
|
||||
icon: e.icon,
|
||||
),
|
||||
Text(e.toStr, style: UIs.text11Grey)
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user