21 lines
580 B
Dart
21 lines
580 B
Dart
import 'package:bottom_sheet/bottom_sheet.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
void showAppointmentBottomSheet(
|
|
BuildContext context, {
|
|
required Widget Function(BuildContext context) header,
|
|
required SliverChildListDelegate Function(BuildContext context) body,
|
|
}) {
|
|
showStickyFlexibleBottomSheet(
|
|
minHeight: 0,
|
|
initHeight: 0.4,
|
|
maxHeight: 0.7,
|
|
anchors: [0, 0.4, 0.7],
|
|
isSafeArea: true,
|
|
maxHeaderHeight: 100,
|
|
context: context,
|
|
headerBuilder: (context, _) => header(context),
|
|
bodyBuilder: (context, _) => body(context),
|
|
);
|
|
}
|