mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: ssh alive
This commit is contained in:
@@ -69,11 +69,18 @@ class ServerFuncBtns extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final btns = () {
|
||||
try {
|
||||
return Stores.setting.serverFuncBtns
|
||||
.fetch()
|
||||
.map((e) => ServerFuncBtn.values[e]);
|
||||
} catch (e) {
|
||||
return ServerFuncBtn.values;
|
||||
}
|
||||
}();
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: Stores.setting.serverFuncBtns
|
||||
.fetch()
|
||||
.map((e) => ServerFuncBtn.values[e])
|
||||
children: btns
|
||||
.map(
|
||||
(e) => Stores.setting.moveOutServerTabFuncBtns.fetch()
|
||||
? IconButton(
|
||||
|
||||
Reference in New Issue
Block a user