feat: 分享视频&图片

This commit is contained in:
guozhigq
2023-05-26 22:28:48 +08:00
parent 0a4f6b2508
commit c2aeb443a0
4 changed files with 23 additions and 13 deletions

View File

@ -168,7 +168,7 @@ class _ImagePreviewState extends State<ImagePreview>
bottom: 0,
child: Container(
// height: 45,
padding: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom + 10, top: 20),
padding: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom, top: 20),
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
@ -199,10 +199,10 @@ class _ImagePreviewState extends State<ImagePreview>
]),
),
),
FloatingActionButton(
onPressed: () => _previewController.onSaveImg(),
child: const Icon(Icons.save_alt_rounded),
),
const Spacer(),
ElevatedButton(onPressed: () => _previewController.onShareImg(), child: Text('分享')),
const SizedBox(width: 10),
ElevatedButton(onPressed: () => _previewController.onSaveImg(), child: Text('保存'))
],
),
),