feat: Enhance contact agent bottom sheet layout with max height and safe area, and refine send request button styling.

This commit is contained in:
pradeepkumar
2026-03-14 23:46:22 +05:30
parent 2198cae027
commit d3f49565d3

View File

@@ -1664,20 +1664,21 @@ class _ConnectModalContentState extends State<_ConnectModalContent> {
return Padding(
padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: Container(
constraints: BoxConstraints(
maxHeight: MediaQuery.of(context).size.height * 0.85,
),
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
),
padding: EdgeInsets.fromLTRB(
24,
24,
24,
24 + MediaQuery.of(context).padding.bottom,
),
child: SafeArea(
top: false,
child: SingleChildScrollView(
padding: const EdgeInsets.fromLTRB(24, 24, 24, 24),
child: _success ? _buildSuccessContent() : _buildFormContent(),
),
),
),
);
}
@@ -1860,12 +1861,17 @@ class _ConnectModalContentState extends State<_ConnectModalContent> {
onPressed: _isSubmitting ? null : _handleSend,
style: ElevatedButton.styleFrom(
backgroundColor: AppColors.accentOrange,
foregroundColor: Colors.white,
disabledBackgroundColor:
AppColors.accentOrange.withValues(alpha: 0.5),
disabledForegroundColor: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24),
),
padding: const EdgeInsets.symmetric(horizontal: 16),
),
child: FittedBox(
fit: BoxFit.scaleDown,
child: Text(
_isSubmitting ? 'Sending...' : 'Send Request',
style: const TextStyle(
@@ -1878,6 +1884,7 @@ class _ConnectModalContentState extends State<_ConnectModalContent> {
),
),
),
),
],
),
],