mirror of
https://github.com/git-touch/git-touch
synced 2025-02-20 21:40:44 +01:00
feat: launch google maps for location
This commit is contained in:
parent
c78c010fab
commit
58ee48527f
@ -115,8 +115,10 @@ class _UserScreenState extends State<UserScreen> {
|
||||
return TableViewItem(
|
||||
leftWidget: leftWidget,
|
||||
text: itemText,
|
||||
rightWidget: Icon(CupertinoIcons.right_chevron,
|
||||
size: 18, color: PrimerColors.gray300),
|
||||
rightWidget: onTap == null
|
||||
? null
|
||||
: Icon(CupertinoIcons.right_chevron,
|
||||
size: 18, color: PrimerColors.gray300),
|
||||
onTap: onTap,
|
||||
);
|
||||
}
|
||||
@ -263,10 +265,16 @@ class _UserScreenState extends State<UserScreen> {
|
||||
text: payload['company'],
|
||||
),
|
||||
_buildTableViewItem(
|
||||
iconData: Octicons.location,
|
||||
placeholder: 'Location',
|
||||
text: payload['location'],
|
||||
),
|
||||
iconData: Octicons.location,
|
||||
placeholder: 'Location',
|
||||
text: payload['location'],
|
||||
onTap: payload['location'] == null
|
||||
? null
|
||||
: () {
|
||||
launch('https://www.google.com/maps/place/' +
|
||||
(payload['location'] as String)
|
||||
.replaceAll(RegExp(r'\s+'), ''));
|
||||
}),
|
||||
_buildTableViewItem(
|
||||
iconData: Octicons.mail,
|
||||
placeholder: 'Email',
|
||||
|
Loading…
x
Reference in New Issue
Block a user