Task and Ticket Detail screen scrollable
This commit is contained in:
parent
5c6dec3788
commit
83911b20ee
|
|
@ -2026,12 +2026,18 @@ class _TaskDetailScreenState extends ConsumerState<TaskDetailScreen>
|
|||
);
|
||||
}
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
detailsCard,
|
||||
const SizedBox(height: 12),
|
||||
Expanded(child: tabbedCard),
|
||||
],
|
||||
// Mobile: make whole detail screen scrollable and give the
|
||||
// tabbed area a fixed height so it can layout inside the
|
||||
// scrollable column.
|
||||
final mobileTabHeight = MediaQuery.of(context).size.height * 0.72;
|
||||
return SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
detailsCard,
|
||||
const SizedBox(height: 12),
|
||||
SizedBox(height: mobileTabHeight, child: tabbedCard),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
|
@ -2102,7 +2108,7 @@ class _TaskDetailScreenState extends ConsumerState<TaskDetailScreen>
|
|||
Container(
|
||||
margin: const EdgeInsets.only(bottom: 12),
|
||||
padding: const EdgeInsets.all(12),
|
||||
constraints: const BoxConstraints(maxWidth: 520),
|
||||
constraints: const BoxConstraints(minWidth: 160, maxWidth: 520),
|
||||
decoration: BoxDecoration(
|
||||
color: bubbleColor,
|
||||
borderRadius: BorderRadius.only(
|
||||
|
|
|
|||
|
|
@ -230,6 +230,7 @@ class _TicketDetailScreenState extends ConsumerState<TicketDetailScreen> {
|
|||
margin: const EdgeInsets.only(bottom: 12),
|
||||
padding: const EdgeInsets.all(12),
|
||||
constraints: const BoxConstraints(
|
||||
minWidth: 160,
|
||||
maxWidth: 520,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
|
|
@ -409,12 +410,19 @@ class _TicketDetailScreenState extends ConsumerState<TicketDetailScreen> {
|
|||
);
|
||||
}
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
detailsCard,
|
||||
const SizedBox(height: 12),
|
||||
Expanded(child: messagesCard),
|
||||
],
|
||||
// Mobile: make entire detail screen scrollable and give the
|
||||
// messages area a fixed height so it can layout inside the
|
||||
// scrollable column.
|
||||
final mobileMessagesHeight =
|
||||
MediaQuery.of(context).size.height * 0.72;
|
||||
return SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
detailsCard,
|
||||
const SizedBox(height: 12),
|
||||
SizedBox(height: mobileMessagesHeight, child: messagesCard),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user