opt. for performance
This commit is contained in:
@@ -115,7 +115,7 @@ class _ServerPageState extends State<ServerPage>
|
||||
.go(context),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(13),
|
||||
child: _buildRealServerCard(si.status, si.spi.name, si.cs, si.spi),
|
||||
child: _buildRealServerCard(si.status, si.spi.name, si.state, si.spi),
|
||||
),
|
||||
onTap: () => AppRoute(ServerDetailPage(si.spi.id), 'server detail page')
|
||||
.go(context),
|
||||
|
||||
@@ -177,7 +177,7 @@ class _SFTPPageState extends State<SFTPPage> {
|
||||
);
|
||||
|
||||
Widget _buildFileView() {
|
||||
if (_client == null || _si?.cs != ServerState.connected) {
|
||||
if (_client == null || _si?.state != ServerState.connected) {
|
||||
return centerCircleLoading;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user