fix: Design glitches in sticker dialog

This commit is contained in:
Christian Kußowski 2025-06-25 10:29:28 +02:00
commit b63a1d3e5c
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -73,7 +73,9 @@ class StickerPickerDialogState extends State<StickerPickerDialog> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
itemBuilder: (BuildContext context, int imageIndex) { itemBuilder: (BuildContext context, int imageIndex) {
final image = pack.images[imageKeys[imageIndex]]!; final image = pack.images[imageKeys[imageIndex]]!;
return InkWell( return Tooltip(
message: image.body ?? imageKeys[imageIndex],
child: InkWell(
radius: AppConfig.borderRadius, radius: AppConfig.borderRadius,
key: ValueKey(image.url.toString()), key: ValueKey(image.url.toString()),
onTap: () { onTap: () {
@ -95,6 +97,7 @@ class StickerPickerDialogState extends State<StickerPickerDialog> {
isThumbnail: false, isThumbnail: false,
), ),
), ),
),
); );
}, },
), ),
@ -111,6 +114,7 @@ class StickerPickerDialogState extends State<StickerPickerDialog> {
SliverAppBar( SliverAppBar(
floating: true, floating: true,
pinned: true, pinned: true,
scrolledUnderElevation: 0,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
title: SizedBox( title: SizedBox(
@ -118,6 +122,7 @@ class StickerPickerDialogState extends State<StickerPickerDialog> {
child: TextField( child: TextField(
autofocus: false, autofocus: false,
decoration: InputDecoration( decoration: InputDecoration(
filled: true,
hintText: L10n.of(context).search, hintText: L10n.of(context).search,
prefixIcon: const Icon(Icons.search_outlined), prefixIcon: const Icon(Icons.search_outlined),
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,