clean up implementation of positioning to avoid problems
This commit is contained in:
parent
15d9df3966
commit
fc2a6cfb62
3 changed files with 8 additions and 10 deletions
|
|
@ -35,8 +35,8 @@ abstract class AppConfig {
|
|||
static const double readingAssistanceInputBarHeight = 140.0;
|
||||
static const double reactionsPickerHeight = 48.0;
|
||||
static const double chatInputRowOverlayPadding = 8.0;
|
||||
static const double selectModeInputBarHeight =
|
||||
reactionsPickerHeight + (chatInputRowOverlayPadding * 2) + toolbarSpacing;
|
||||
static const double selectModeInputBarHeight = 0;
|
||||
// reactionsPickerHeight + (chatInputRowOverlayPadding * 2) + toolbarSpacing;
|
||||
static const double practiceModeInputBarHeight =
|
||||
readingAssistanceInputBarHeight +
|
||||
toolbarButtonsHeight +
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import 'package:fluffychat/config/app_config.dart';
|
||||
import 'package:fluffychat/pages/chat/chat.dart';
|
||||
import 'package:fluffychat/pages/chat/reactions_picker.dart';
|
||||
import 'package:fluffychat/pangea/toolbar/enums/message_mode_enum.dart';
|
||||
import 'package:fluffychat/pangea/toolbar/enums/reading_assistance_mode_enum.dart';
|
||||
import 'package:fluffychat/pangea/toolbar/widgets/message_mode_locked_card.dart';
|
||||
|
|
@ -41,7 +40,8 @@ class ReadingAssistanceInputBar extends StatelessWidget {
|
|||
: null;
|
||||
|
||||
if (overlayController.pangeaMessageEvent?.isAudioMessage == true) {
|
||||
return ReactionsPicker(controller);
|
||||
return const SizedBox();
|
||||
// return ReactionsPicker(controller);
|
||||
} else {
|
||||
switch (overlayController.toolbarMode) {
|
||||
case MessageMode.messageSpeechToText:
|
||||
|
|
|
|||
|
|
@ -147,11 +147,10 @@ class MessageSelectionPositionerState extends State<MessageSelectionPositioner>
|
|||
_centeredMessageOffset = Offset(
|
||||
offset.dx - _columnWidth - _horizontalPadding - 2.0,
|
||||
_mediaQuery!.size.height -
|
||||
offset.dy -
|
||||
// (offset.dy -
|
||||
// ((AppConfig.practiceModeInputBarHeight -
|
||||
// AppConfig.selectModeInputBarHeight) *
|
||||
// 0.75)) -
|
||||
(offset.dy -
|
||||
((AppConfig.practiceModeInputBarHeight -
|
||||
AppConfig.selectModeInputBarHeight) *
|
||||
0.75)) -
|
||||
renderBox.size.height -
|
||||
_reactionsHeight,
|
||||
);
|
||||
|
|
@ -484,7 +483,6 @@ class MessageSelectionPositionerState extends State<MessageSelectionPositioner>
|
|||
}
|
||||
|
||||
double get _footerHeight {
|
||||
return 0;
|
||||
return _inputBarSize + (_mediaQuery?.padding.bottom ?? 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue