Fix bottom bar spacing issues, make it more consistent with Fluffychat behavior (#4523)
* Add background to activity role tooltip * Fix spacing directly, instead of adding role tooltip background * Make bottom bar padding, background color, and divider behave more like Fluffychat * remove changes to fluffychat code --------- Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
parent
84e6f8076d
commit
a2a81733bd
3 changed files with 30 additions and 28 deletions
|
|
@ -461,8 +461,7 @@ class ChatView extends StatelessWidget {
|
|||
AnimatedSize(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
child: SizedBox(
|
||||
height: controller.inputBarHeight +
|
||||
bottomSheetPadding,
|
||||
height: controller.inputBarHeight,
|
||||
),
|
||||
),
|
||||
if (controller.room.isActivityFinished)
|
||||
|
|
@ -487,18 +486,29 @@ class ChatView extends StatelessWidget {
|
|||
Positioned(
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 16,
|
||||
bottom: 0,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
ChatInputBarHeader(
|
||||
controller: controller,
|
||||
padding: bottomSheetPadding,
|
||||
),
|
||||
ChatInputBar(
|
||||
controller: controller,
|
||||
padding: bottomSheetPadding,
|
||||
if (controller.showScrollDownButton)
|
||||
Divider(
|
||||
height: 1,
|
||||
color: Theme.of(context).dividerColor,
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color:
|
||||
Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
child: ChatInputBar(
|
||||
controller: controller,
|
||||
padding: bottomSheetPadding,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -46,23 +46,17 @@ class ActivityRoleTooltipState extends State<ActivityRoleTooltip> {
|
|||
return const SizedBox();
|
||||
}
|
||||
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
border: Border(
|
||||
top: BorderSide(
|
||||
color: Theme.of(context).colorScheme.outline,
|
||||
width: 0.1,
|
||||
),
|
||||
),
|
||||
),
|
||||
child: InlineTooltip(
|
||||
message: room.ownRole!.goal!,
|
||||
isClosed: room.hasDismissedGoalTooltip,
|
||||
onClose: () async {
|
||||
await room.dismissGoalTooltip();
|
||||
if (mounted) setState(() {});
|
||||
},
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
return InlineTooltip(
|
||||
message: room.ownRole!.goal!,
|
||||
isClosed: room.hasDismissedGoalTooltip,
|
||||
onClose: () async {
|
||||
await room.dismissGoalTooltip();
|
||||
if (mounted) setState(() {});
|
||||
},
|
||||
padding: const EdgeInsets.only(
|
||||
left: 16.0,
|
||||
top: 16.0,
|
||||
right: 16.0,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,10 +66,8 @@ class ChatInputBarState extends State<ChatInputBar> {
|
|||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.only(
|
||||
bottom: widget.padding,
|
||||
left: widget.padding,
|
||||
right: widget.padding,
|
||||
padding: EdgeInsets.all(
|
||||
widget.padding,
|
||||
),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: FluffyThemes.maxTimelineWidth,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue