swiper增加tablet设备类型

Signed-off-by: xiexiyun <xiexiyun@huawei.com>
Change-Id: I903e314605de06d0ed4236c2ce76d39d6c4b0e98
This commit is contained in:
xiexiyun
2022-03-24 16:08:22 +08:00
parent 3c11a98ba8
commit d884a0c637
3 changed files with 3 additions and 0 deletions
@@ -56,6 +56,7 @@ void FlutterRenderSwiper::Paint(RenderContext& context, const Offset& offset)
return;
}
if (SystemProperties::GetDeviceType() == DeviceType::PHONE ||
SystemProperties::GetDeviceType() == DeviceType::TABLET ||
SystemProperties::GetDeviceType() == DeviceType::CAR) {
DrawIndicator(context, offset);
} else {
@@ -383,6 +383,7 @@ void RenderSwiper::PerformLayout()
// layout indicator
if (SystemProperties::GetDeviceType() == DeviceType::PHONE ||
SystemProperties::GetDeviceType() == DeviceType::TABLET ||
SystemProperties::GetDeviceType() == DeviceType::CAR) {
LayoutIndicator(swiperIndicatorData_);
} else {
@@ -56,6 +56,7 @@ void RosenRenderSwiper::Paint(RenderContext& context, const Offset& offset)
return;
}
if (SystemProperties::GetDeviceType() == DeviceType::PHONE ||
SystemProperties::GetDeviceType() == DeviceType::TABLET ||
SystemProperties::GetDeviceType() == DeviceType::CAR) {
DrawIndicator(context, offset);
} else {