feat: Implement clear chat, delete conversation, mute, and report options within the chat screen.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:real_estate_mobile/core/constants/api_constants.dart';
|
||||
import 'package:real_estate_mobile/core/constants/app_colors.dart';
|
||||
import 'package:real_estate_mobile/core/network/api_client.dart';
|
||||
@@ -27,6 +28,7 @@ class _ContactScreenState extends State<ContactScreen> {
|
||||
String _contactOfficeCity = 'New York CA 234737';
|
||||
String _pageTitle = 'Get In Touch';
|
||||
String _pageDescription = 'Have a question about a property or need assistance? Fill out the form below and our team will get back to you shortly.';
|
||||
String _directionsUrl = 'https://maps.google.com/?q=123+Market+Street+New+York+CA+234737';
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -53,6 +55,7 @@ class _ContactScreenState extends State<ContactScreen> {
|
||||
_contactOfficeCity = content['officeCity'] as String? ?? _contactOfficeCity;
|
||||
_pageTitle = content['title'] as String? ?? _pageTitle;
|
||||
_pageDescription = content['description'] as String? ?? _pageDescription;
|
||||
_directionsUrl = content['directionsUrl'] as String? ?? _directionsUrl;
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -443,7 +446,12 @@ class _ContactScreenState extends State<ContactScreen> {
|
||||
const SizedBox(height: 16),
|
||||
// Get Directions button
|
||||
GestureDetector(
|
||||
onTap: () {},
|
||||
onTap: () async {
|
||||
final uri = Uri.parse(_directionsUrl);
|
||||
if (await canLaunchUrl(uri)) {
|
||||
await launchUrl(uri, mode: LaunchMode.externalApplication);
|
||||
}
|
||||
},
|
||||
child: Container(
|
||||
width: 139,
|
||||
height: 35,
|
||||
|
||||
Reference in New Issue
Block a user