mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 13:05:11 +00:00
chore: Follow up sendfiledialog fixes
This commit is contained in:
parent
c8a3166503
commit
dd758e16cf
1 changed files with 25 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
|
@ -98,12 +99,30 @@ class SendFileDialogState extends State<SendFileDialog> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SwitchListTile.adaptive(
|
const SizedBox(height: 16),
|
||||||
value: origImage,
|
// Workaround for SwitchListTile.adaptive crashes in CupertinoDialog
|
||||||
contentPadding: EdgeInsets.zero,
|
Row(
|
||||||
onChanged: (v) => setState(() => origImage = v),
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
title: Text(L10n.of(context)!.sendOriginal),
|
children: [
|
||||||
subtitle: Text(sizeString),
|
CupertinoSwitch(
|
||||||
|
value: origImage,
|
||||||
|
onChanged: (v) => setState(() => origImage = v),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 16),
|
||||||
|
Expanded(
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
L10n.of(context)!.sendOriginal,
|
||||||
|
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
|
),
|
||||||
|
Text(sizeString),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue