feat: 实现日历提醒 in-app fallback 机制及通知服务重构
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import '../../../../core/theme/design_tokens.dart';
|
||||
|
||||
class HomeKeyboardInsetCalculator {
|
||||
static double compute({
|
||||
required double rawViewInsetBottom,
|
||||
required double bottomViewPadding,
|
||||
}) {
|
||||
if (rawViewInsetBottom <= AppSpacing.xs) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
final adjustedInset = rawViewInsetBottom - bottomViewPadding;
|
||||
if (adjustedInset <= AppSpacing.xs) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return adjustedInset;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user