Files
buzz/mobile/lib/shared/widgets/frosted_scroll_under_scope.dart
klopez4212 ed11c8d8bf Refresh mobile utility surfaces and theme picker (#6944)
## Summary

- invert mobile utility surfaces so pages and sheets use the softer page
background with raised containers
- rebuild the community theme picker around swipeable Home/Chat
previews, accent and appearance controls, and native iOS glass
interactions
- align shared sheet/profile spacing and radii, and move Theme into the
Community settings card

### Related issue

None found.

### Testing

- `just mobile-check`
- `just mobile-test` (1,871 tests)
- signed iOS Release build installed on a physical iPhone

---------

Signed-off-by: kenny lopez <klopez4212@gmail.com>
Signed-off-by: Kenny Lopez <klopez4212@gmail.com>
Signed-off-by: Princess Donut <b238ea756dee4d98afa5883fc7f1de61eeabe65bf700e3a5a5a80db5e42e2c2b@buzz.block.builderlab.xyz>
Co-authored-by: Princess Donut <b238ea756dee4d98afa5883fc7f1de61eeabe65bf700e3a5a5a80db5e42e2c2b@buzz.block.builderlab.xyz>
2026-08-28 18:56:42 +01:00

20 lines
594 B
Dart

import 'package:flutter/widgets.dart';
/// Supplies whether vertical content has moved beneath a frosted app bar.
class FrostedScrollUnderScope extends InheritedWidget {
const FrostedScrollUnderScope({
super.key,
required this.isScrolledUnder,
required super.child,
});
final bool isScrolledUnder;
static FrostedScrollUnderScope? maybeOf(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<FrostedScrollUnderScope>();
@override
bool updateShouldNotify(FrostedScrollUnderScope oldWidget) =>
isScrolledUnder != oldWidget.isScrolledUnder;
}