Adjust vendor view

This commit is contained in:
Hillel Coren 2022-06-08 16:21:25 +03:00
parent 9c77c06219
commit 79a588b9c3
3 changed files with 19 additions and 11 deletions

View File

@ -58,7 +58,7 @@ class PortalLinks extends StatelessWidget {
IconButton(
onPressed: copyLinkPressed,
icon: Icon(Icons.copy),
tooltip: prefState.enableTooltips ? localization.copy : '',
tooltip: prefState.enableTooltips ? localization.copyLink : '',
),
],
);

View File

@ -188,11 +188,15 @@ class _ClientViewFullwidthState extends State<ClientViewFullwidth>
),
SizedBox(width: 8),
IconButton(
onPressed: () {
launch('http://maps.google.com/?daddr=' +
Uri.encodeQueryComponent(billingAddress));
},
icon: Icon(Icons.map))
onPressed: () {
launch('http://maps.google.com/?daddr=' +
Uri.encodeQueryComponent(billingAddress));
},
icon: Icon(Icons.map),
tooltip: state.prefState.enableTooltips
? localization.viewMap
: '',
)
],
),
SizedBox(height: 8),

View File

@ -164,11 +164,15 @@ class _VendorViewFullwidthState extends State<VendorViewFullwidth>
),
SizedBox(width: 8),
IconButton(
onPressed: () {
launch('http://maps.google.com/?daddr=' +
Uri.encodeQueryComponent(billingAddress));
},
icon: Icon(Icons.map))
onPressed: () {
launch('http://maps.google.com/?daddr=' +
Uri.encodeQueryComponent(billingAddress));
},
icon: Icon(Icons.map),
tooltip: state.prefState.enableTooltips
? localization.viewMap
: '',
)
],
),
SizedBox(height: 8),