mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 21:15:50 -06:00
30 lines
930 B
Dart
30 lines
930 B
Dart
import 'dart:io';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:paperless_mobile/core/widgets/dialog_utils/dialog_cancel_button.dart';
|
|
import 'package:paperless_mobile/core/widgets/dialog_utils/dialog_confirm_button.dart';
|
|
import 'package:paperless_mobile/generated/l10n/app_localizations.dart';
|
|
|
|
class PendingFilesInfoDialog extends StatelessWidget {
|
|
final List<File> pendingFiles;
|
|
const PendingFilesInfoDialog({super.key, required this.pendingFiles});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final fileCount = pendingFiles.length;
|
|
return AlertDialog(
|
|
title: Text("Pending Files"),
|
|
content: Text(
|
|
"$fileCount files are waiting to be uploaded. Do you want to upload them now?",
|
|
),
|
|
actions: [
|
|
DialogCancelButton(),
|
|
DialogConfirmButton(
|
|
label: S.of(context)!.upload,
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|