Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class _ExhibitionBottomSheetState extends State<ExhibitionBottomSheet>
with SingleTickerProviderStateMixin {
double get headerTopMargin => lerp(20, 20 + MediaQuery.of(context).padding.top); //<-- Add new property
double get headerFontSize => lerp(14, 24); //<-- Add new property
double lerp(double min, double max) =>
lerpDouble(min, max, _controller.value);
@override
Widget build(BuildContext context) {
return ...
Stack(
children: <Widget>[
MenuButton(),
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.