💄 Change the post reaction sheet sticker picker align and close
This commit is contained in:
@@ -144,7 +144,6 @@ class PostReactionSheet extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
const Divider(height: 1),
|
const Divider(height: 1),
|
||||||
TabBar(tabs: [Tab(text: 'overview'.tr()), Tab(text: 'custom'.tr())]),
|
TabBar(tabs: [Tab(text: 'overview'.tr()), Tab(text: 'custom'.tr())]),
|
||||||
const Divider(height: 1),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TabBarView(
|
child: TabBarView(
|
||||||
children: [
|
children: [
|
||||||
@@ -599,12 +598,8 @@ class CustomReactionForm extends HookConsumerWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
|
||||||
'customReaction'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.titleLarge,
|
|
||||||
),
|
|
||||||
const Gap(24),
|
|
||||||
TextField(
|
TextField(
|
||||||
|
readOnly: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: 'stickerPlaceholder'.tr(),
|
labelText: 'stickerPlaceholder'.tr(),
|
||||||
hintText: 'prefix+slug',
|
hintText: 'prefix+slug',
|
||||||
@@ -615,7 +610,10 @@ class CustomReactionForm extends HookConsumerWidget {
|
|||||||
onTapDown: (details) async {
|
onTapDown: (details) async {
|
||||||
await showStickerPickerPopover(
|
await showStickerPickerPopover(
|
||||||
context,
|
context,
|
||||||
details.globalPosition.translate(-300, -280),
|
Offset(
|
||||||
|
(MediaQuery.sizeOf(context).width - 500) / 2,
|
||||||
|
MediaQuery.sizeOf(context).height - 500,
|
||||||
|
),
|
||||||
alignment: Alignment.topLeft,
|
alignment: Alignment.topLeft,
|
||||||
onPick: (placeholder) {
|
onPick: (placeholder) {
|
||||||
// Remove the surrounding : from the placeholder
|
// Remove the surrounding : from the placeholder
|
||||||
|
|||||||
Reference in New Issue
Block a user