Add explicit surface visibility signal
Provide composable shown/current visibility for retained surfaces and migrate visibility readers away from TickerMode. This keeps ticker muting separate from painted and current-surface state.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pipelines_app/ui/motion/surface_visibility.dart';
|
||||
import 'package:pipelines_app/ui/text/elapsed_clock.dart';
|
||||
import 'package:pipelines_app/ui/text/live_elapsed_builder.dart';
|
||||
|
||||
@@ -87,8 +88,9 @@ void main() {
|
||||
textDirection: TextDirection.ltr,
|
||||
child: ElapsedClockScope(
|
||||
clock: clock,
|
||||
child: TickerMode(
|
||||
enabled: shown,
|
||||
child: SurfaceVisibility(
|
||||
shown: shown,
|
||||
current: shown,
|
||||
child: LiveElapsedBuilder(
|
||||
since: start,
|
||||
builder: (context, now) =>
|
||||
|
||||
Reference in New Issue
Block a user