-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor UI fixes #1386
base: main
Are you sure you want to change the base?
Minor UI fixes #1386
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -461,6 +461,10 @@ class InputBar extends StatelessWidget { | |
final data = content.data; | ||
if (data == null) return; | ||
|
||
if (content.mimeType.startsWith("image/")) { | ||
onSubmitImage!(data); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I use this feature mostly with the GBoard when sending a sticker or GIF. Having a dialog every time would be just overhead IMO There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah... that will be very inconvenient.... But I think media is a bit expensive for the matrix. Currently both Android and web can upload images by pasting. So without visual confirmation, users might accidentally upload contents either they don't want or in its original quality (average screenshot takes about 7M, and in most case it's unnecessary to keep the original quality). Thus, putting more burden on home-level servers. What if we only show the dialog for images larger than a certain size (e.g. 1M)? |
||
return; | ||
} | ||
final file = MatrixFile( | ||
mimeType: content.mimeType, | ||
bytes: data, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain here, why it is required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue:
The fix:
I thought this should be a common issue, so I've searched if there are any instructions.
and...
The change is guided by the readme of
adaptive_dialog
https://pub.dev/packages/adaptive_dialog#the-input-text-color-same-with-backgound-when-using-cupertinotextinputdialog