fix desktop id padding

This commit is contained in:
rustdesk 2023-03-03 16:50:45 +08:00
parent 71a8c55f98
commit e30f690f9c
2 changed files with 9 additions and 9 deletions

View file

@ -158,7 +158,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
readOnly: true,
decoration: InputDecoration(
border: InputBorder.none,
contentPadding: EdgeInsets.only(bottom: 20),
contentPadding: EdgeInsets.only(top: 10, bottom: 10),
),
style: TextStyle(
fontSize: 22,
@ -242,7 +242,8 @@ class _DesktopHomePageState extends State<DesktopHomePage>
readOnly: true,
decoration: InputDecoration(
border: InputBorder.none,
contentPadding: EdgeInsets.only(bottom: 2),
contentPadding:
EdgeInsets.only(top: 14, bottom: 10),
),
style: TextStyle(fontSize: 15),
),
@ -254,9 +255,9 @@ class _DesktopHomePageState extends State<DesktopHomePage>
Icons.refresh,
color: refreshHover.value
? textColor
: Color(0xFFDDDDDD), // TODO
: Color(0xFFDDDDDD),
size: 22,
).marginOnly(right: 8, bottom: 2),
).marginOnly(right: 8, top: 4),
),
onTap: () => bind.mainUpdateTemporaryPassword(),
onHover: (value) => refreshHover.value = value,
@ -265,11 +266,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
child: Obx(
() => Icon(
Icons.edit,
color: editHover.value
? textColor
: Color(0xFFDDDDDD), // TODO
color:
editHover.value ? textColor : Color(0xFFDDDDDD),
size: 22,
).marginOnly(right: 8, bottom: 2),
).marginOnly(right: 8, top: 4),
),
onTap: () => DesktopSettingPage.switch2page(1),
onHover: (value) => editHover.value = value,

View file

@ -4,5 +4,5 @@ dart pub global activate ffigen --version 5.0.1
flutter pub get
# call `flutter clean` if cargo build fails
# export LLVM_HOME=/Library/Developer/CommandLineTools/usr/
cargo build --features flutter
cargo build --features "flutter,flutter_texture_render"
flutter run $@