Commit graph

6 commits

Author SHA1 Message Date
Nutcake
e97e0a52af Move copy message snackbar to top of view
On Android 13 or newer there is an operating system integrated message
bubble that pops up and shows you any automated clipboard changes at the
bottom left of the screen. This bubble obscures the message text of the
snackbar so I've moved it to the top of the screen when on Android.

It might make sense to do more accurate version checking in the future
to only show the snackbar if on Android < 13 or iOS but we'd need to pull in the
device_info_plus package or similar for that.
2023-11-11 11:02:13 +01:00
Nutcake
44e94555f2 Add ripple effect to text-copy action
Generally the use of GestureDetector is discouraged in favor of InkWell
unless you have a very specific reason to use it. InkWells automatically
generate ripple effects if there is a parent material widget in the tree
to indicate to a user that a given widget is interactible.
2023-11-11 10:51:24 +01:00
Nutcake
7ff98649e9 Fix unchecked use of BuildContext after await
When using the BuildContext after an asynchronus gap (like when using
await), you always need to check if the context is still mounted before
using it to retrieve objects from the widget tree like with
`ScaffoldMessenger.of(context)`.

Additionally you don't need to use
`.then((value) {})` on a future, if that future is already awaited, you
can simply put any following statements on a new line for better
readability of program flow.
2023-11-11 10:20:55 +01:00
Garrett Watson
393d71a8bc feat: add copying message text via long press 2023-11-10 18:34:17 -05:00
Nutcake
74fb91e0a4 Replace all text references with new ReCon branding 2023-10-03 19:00:59 +02:00
Nutcake
2b7b4e2dba Add support for material you and improve message design coherency 2023-05-15 15:45:41 +02:00