add divider of statusbar back and add quit button for qs
This commit is contained in:
parent
7307b84dad
commit
fbfcf862cb
@ -52,7 +52,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
Timer? _updateTimer;
|
Timer? _updateTimer;
|
||||||
bool isCardClosed = false;
|
bool isCardClosed = false;
|
||||||
|
|
||||||
RxBool _editHover = false.obs;
|
final RxBool _editHover = false.obs;
|
||||||
|
|
||||||
final GlobalKey _childKey = GlobalKey();
|
final GlobalKey _childKey = GlobalKey();
|
||||||
|
|
||||||
@ -129,6 +129,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
];
|
];
|
||||||
if (isIncomingOnly) {
|
if (isIncomingOnly) {
|
||||||
children.addAll([
|
children.addAll([
|
||||||
|
Divider(),
|
||||||
OnlineStatusWidget(
|
OnlineStatusWidget(
|
||||||
onSvcStatusChanged: () {
|
onSvcStatusChanged: () {
|
||||||
if (_isInHomePage()) {
|
if (_isInHomePage()) {
|
||||||
@ -531,6 +532,17 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (bind.isIncomingOnly()) {
|
||||||
|
return Align(
|
||||||
|
alignment: Alignment.centerRight,
|
||||||
|
child: OutlinedButton(
|
||||||
|
onPressed: () {
|
||||||
|
SystemNavigator.pop(); // Close the application
|
||||||
|
},
|
||||||
|
child: Text(translate('Quit')),
|
||||||
|
),
|
||||||
|
).marginAll(14);
|
||||||
|
}
|
||||||
return Container();
|
return Container();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user