mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 08:23:01 +08:00
fix home page tabbar label language cannot be changed
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
4e234ed3f0
commit
3b42b331d1
@ -23,7 +23,7 @@ class DesktopTabPage extends StatefulWidget {
|
|||||||
DesktopTabController tabController = Get.find();
|
DesktopTabController tabController = Get.find();
|
||||||
tabController.add(TabInfo(
|
tabController.add(TabInfo(
|
||||||
key: kTabLabelSettingPage,
|
key: kTabLabelSettingPage,
|
||||||
label: translate(kTabLabelSettingPage),
|
label: kTabLabelSettingPage,
|
||||||
selectedIcon: Icons.build_sharp,
|
selectedIcon: Icons.build_sharp,
|
||||||
unselectedIcon: Icons.build_outlined,
|
unselectedIcon: Icons.build_outlined,
|
||||||
page: DesktopSettingPage(
|
page: DesktopSettingPage(
|
||||||
@ -46,7 +46,7 @@ class _DesktopTabPageState extends State<DesktopTabPage> {
|
|||||||
RemoteCountState.init();
|
RemoteCountState.init();
|
||||||
tabController.add(TabInfo(
|
tabController.add(TabInfo(
|
||||||
key: kTabLabelHomePage,
|
key: kTabLabelHomePage,
|
||||||
label: translate(kTabLabelHomePage),
|
label: kTabLabelHomePage,
|
||||||
selectedIcon: Icons.home_sharp,
|
selectedIcon: Icons.home_sharp,
|
||||||
unselectedIcon: Icons.home_outlined,
|
unselectedIcon: Icons.home_outlined,
|
||||||
closable: false,
|
closable: false,
|
||||||
|
@ -869,7 +869,7 @@ class _TabState extends State<_Tab> with RestorationMixin {
|
|||||||
return ConstrainedBox(
|
return ConstrainedBox(
|
||||||
constraints: BoxConstraints(maxWidth: widget.maxLabelWidth ?? 200),
|
constraints: BoxConstraints(maxWidth: widget.maxLabelWidth ?? 200),
|
||||||
child: Text(
|
child: Text(
|
||||||
widget.label.value,
|
translate(widget.label.value),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: isSelected
|
color: isSelected
|
||||||
|
Loading…
Reference in New Issue
Block a user