refactor: use safe insets from native for Android, closes #1793 and closes #1886 (#1897)

This commit is contained in:
Huang Xin 2025-08-25 15:38:49 +08:00 committed by GitHub
parent 0b01132d88
commit 5ee860f1e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 282 additions and 64 deletions

View file

@ -119,3 +119,10 @@ pub(crate) async fn get_system_color_scheme<R: Runtime>(
) -> Result<GetSystemColorSchemeResponse> {
app.native_bridge().get_system_color_scheme()
}
#[command]
pub(crate) async fn get_safe_area_insets<R: Runtime>(
app: AppHandle<R>,
) -> Result<GetSafeAreaInsetsResponse> {
app.native_bridge().get_safe_area_insets()
}