conduit/lib/shared/utils/platform_scroll_physics.dart
cogwheel 332f0c75bb
Some checks failed
L10n / l10n (push) Has been cancelled
feat: unify app surfaces with native grouped design (#628)
Squash-merge the reviewed native UI, sidebar, onboarding, direct connection, Hermes, workspace, theming, haptics, and consistency updates.
2026-08-15 18:37:46 +05:30

10 lines
353 B
Dart

import 'package:material_ui/material_ui.dart';
ScrollPhysics platformAlwaysScrollablePhysics(BuildContext context) {
return switch (Theme.of(context).platform) {
TargetPlatform.iOS || TargetPlatform.macOS => const BouncingScrollPhysics(
parent: AlwaysScrollableScrollPhysics(),
),
_ => const AlwaysScrollableScrollPhysics(),
};
}