mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-11 03:03:18 +00:00
20 lines
623 B
Dart
20 lines
623 B
Dart
|
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),
|
||
|
),
|
||
|
);
|