import 'package:flutter/widgets.dart'; /// Tells controls placed in a [Sheet]'s chrome whether they sit on the light /// ambient backdrop or on a coloured stage, so they pick glass to match. class ChromeTone extends InheritedWidget { final bool light; const ChromeTone({super.key, required this.light, required super.child}); static bool isLight(BuildContext context) { return context.dependOnInheritedWidgetOfExactType()?.light ?? false; } @override bool updateShouldNotify(covariant ChromeTone oldWidget) { return oldWidget.light != light; } }