selfprivacy.org.app/lib/utils/show_jobs_modal.dart

20 lines
623 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:selfprivacy/ui/components/jobs_content/jobs_content.dart';
Future<T?> showModalJobsSheet<T>({
required final BuildContext context,
}) =>
showModalBottomSheet<T>(
context: context,
useRootNavigator: true,
isScrollControlled: true,
builder: (final BuildContext context) => DraggableScrollableSheet(
expand: false,
maxChildSize: 0.9,
minChildSize: 0.4,
initialChildSize: 0.6,
builder: (final context, final scrollController) =>
JobsContent(controller: scrollController),
),
);