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(
|
// Mobile: make whole detail screen scrollable and give the
|
||||||
children: [
|
// tabbed area a fixed height so it can layout inside the
|
||||||
detailsCard,
|
// scrollable column.
|
||||||
const SizedBox(height: 12),
|
final mobileTabHeight = MediaQuery.of(context).size.height * 0.72;
|
||||||
Expanded(child: tabbedCard),
|
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(
|
Container(
|
||||||
margin: const EdgeInsets.only(bottom: 12),
|
margin: const EdgeInsets.only(bottom: 12),
|
||||||
padding: const EdgeInsets.all(12),
|
padding: const EdgeInsets.all(12),
|
||||||
constraints: const BoxConstraints(maxWidth: 520),
|
constraints: const BoxConstraints(minWidth: 160, maxWidth: 520),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: bubbleColor,
|
color: bubbleColor,
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
|
|
|
||||||
|
|
@ -230,6 +230,7 @@ class _TicketDetailScreenState extends ConsumerState<TicketDetailScreen> {
|
||||||
margin: const EdgeInsets.only(bottom: 12),
|
margin: const EdgeInsets.only(bottom: 12),
|
||||||
padding: const EdgeInsets.all(12),
|
padding: const EdgeInsets.all(12),
|
||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
|
minWidth: 160,
|
||||||
maxWidth: 520,
|
maxWidth: 520,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|
@ -409,12 +410,19 @@ class _TicketDetailScreenState extends ConsumerState<TicketDetailScreen> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Column(
|
// Mobile: make entire detail screen scrollable and give the
|
||||||
children: [
|
// messages area a fixed height so it can layout inside the
|
||||||
detailsCard,
|
// scrollable column.
|
||||||
const SizedBox(height: 12),
|
final mobileMessagesHeight =
|
||||||
Expanded(child: messagesCard),
|
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