mirror of
https://github.com/block/buzz.git
synced 2026-10-28 21:11:48 +00:00
## Summary - make mobile unread state visible with bold channel names, an animated Inbox badge, and swipe-to-toggle Inbox rows - add directional transitions for top-level mobile navigation - let mobile send while media uploads, with cancellable progress UI - normalize iOS and Android video uploads, attach poster frames, and improve native video playback ## Validation - `just mobile-check` - `just mobile-test` - `cargo test -p buzz-media` - Pixel smoke test - iPhone smoke test Desktop background uploads moved to #4522 so the two platforms can be reviewed independently. --------- Signed-off-by: kenny lopez <klopez4212@gmail.com> Signed-off-by: Tom Brow <tomb@block.xyz> Co-authored-by: leader <71e9f2c44a6932b6772caaaccda1911d010463c3e2c6c40410b8329956046801@buzz.block.builderlab.xyz> Co-authored-by: Tom Brow <tomb@block.xyz>
15 lines
310 B
Dart
15 lines
310 B
Dart
import 'package:flutter/widgets.dart';
|
|
|
|
VoidCallback deferReadStateUpdate(BuildContext context, VoidCallback update) {
|
|
var cancelled = false;
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
if (!cancelled && context.mounted) {
|
|
update();
|
|
}
|
|
});
|
|
|
|
return () {
|
|
cancelled = true;
|
|
};
|
|
}
|