|
|
@@ -104,27 +104,17 @@ class _ExportPageState extends ConsumerState<ExportPage> {
|
|
|
Text('导出成功!共 ${_result!['count']} 题'),
|
|
|
const SizedBox(height: 16),
|
|
|
FilledButton.tonal(
|
|
|
- onPressed: () => _downloadFile(_result!['student'] as String, '学生版'),
|
|
|
- child: Row(
|
|
|
- mainAxisSize: MainAxisSize.min,
|
|
|
- children: [
|
|
|
- const Icon(Icons.download, size: 18),
|
|
|
- const SizedBox(width: 8),
|
|
|
- Text('学生版: ${_result!['student']}'),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ onPressed: () => _downloadFile(_result!['student'] as String, '学生版.docx'),
|
|
|
+ child: const Row(mainAxisSize: MainAxisSize.min, children: [
|
|
|
+ Icon(Icons.download, size: 18), SizedBox(width: 8), Text('学生版'),
|
|
|
+ ]),
|
|
|
),
|
|
|
const SizedBox(height: 8),
|
|
|
FilledButton.tonal(
|
|
|
- onPressed: () => _downloadFile(_result!['teacher'] as String, '教师版'),
|
|
|
- child: Row(
|
|
|
- mainAxisSize: MainAxisSize.min,
|
|
|
- children: [
|
|
|
- const Icon(Icons.download, size: 18),
|
|
|
- const SizedBox(width: 8),
|
|
|
- Text('教师版: ${_result!['teacher']}'),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ onPressed: () => _downloadFile(_result!['teacher'] as String, '教师版.docx'),
|
|
|
+ child: const Row(mainAxisSize: MainAxisSize.min, children: [
|
|
|
+ Icon(Icons.download, size: 18), SizedBox(width: 8), Text('教师版'),
|
|
|
+ ]),
|
|
|
),
|
|
|
const SizedBox(height: 16),
|
|
|
TextButton(
|