mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-14 12:43:16 +00:00
a490f5391b
Also open a jobs modal sheet when starting nix collect garbage Closes #541
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),
|
|
),
|
|
);
|