mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
Auto-close the tab where session is done
This commit is contained in:
@@ -206,7 +206,7 @@ class _ServerPageState extends State<ServerPage>
|
||||
late final List<Widget> children;
|
||||
if (srv.state == ServerState.finished) {
|
||||
if (cardStatus.value.flip) {
|
||||
children = [title, ..._buildFlipedCard(srv)];
|
||||
children = [title, ..._buildFlippedCard(srv)];
|
||||
} else {
|
||||
children = [title, ..._buildNormalCard(srv.status, srv.spi)];
|
||||
}
|
||||
@@ -228,7 +228,7 @@ class _ServerPageState extends State<ServerPage>
|
||||
);
|
||||
}
|
||||
|
||||
List<Widget> _buildFlipedCard(Server srv) {
|
||||
List<Widget> _buildFlippedCard(Server srv) {
|
||||
return [
|
||||
UIs.height13,
|
||||
Row(
|
||||
|
||||
Reference in New Issue
Block a user