Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class _ExhibitionBottomSheetState extends State<ExhibitionBottomSheet>
with SingleTickerProviderStateMixin {
double get headerTopMargin => lerp(20, 20 + MediaQuery.of(context); //<-- Add new property
double get headerFontSize => lerp(14, 24); //<-- Add new property
double lerp(double min, double max) =>
lerpDouble(min, max, _controller.value);
Widget build(BuildContext context) {
return ...
children: <Widget>[
SheetHeader( //<-- Add a header with params
fontSize: headerFontSize,
topMargin: headerTopMargin,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.