Skip to content

Commit

Permalink
Fixing overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoazvd17 committed Jul 4, 2024
1 parent b633327 commit f08ddcf
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions lib/src/pages/home_page_tabs/contact_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,29 +72,31 @@ class _ContactTabState extends State<ContactTab> {
child: Row(
children: [
Text(AppLocalizations.of(context)!.contactBy),
Padding(
padding: const EdgeInsets.only(left: 10),
child: InkWell(
onTap: () async {
try {
Uri uri =
Uri.parse('whatsapp://send?phone=+5521988542950');
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
} else {
uri = Uri.parse('https://wa.me/+5521988542950');
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 10),
child: InkWell(
onTap: () async {
try {
Uri uri = Uri.parse(
'whatsapp://send?phone=+5521988542950');
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
} else {
uri = Uri.parse('https://wa.me/+5521988542950');
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
}
}
}
} catch (_) {}
},
borderRadius: BorderRadius.circular(5),
child: Padding(
padding: const EdgeInsets.all(2.5),
child: Image.asset(
'assets/icons/whatsapp.png',
width: 100,
} catch (_) {}
},
borderRadius: BorderRadius.circular(5),
child: Padding(
padding: const EdgeInsets.all(2.5),
child: Image.asset(
'assets/icons/whatsapp.png',
width: 100,
),
),
),
),
Expand All @@ -109,15 +111,17 @@ class _ContactTabState extends State<ContactTab> {
padding: const EdgeInsets.all(20),
child: Row(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(bottom: 10),
child: Text(AppLocalizations.of(context)!.sendMeEmail),
),
_emailForm(context),
],
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(bottom: 10),
child: Text(AppLocalizations.of(context)!.sendMeEmail),
),
_emailForm(context),
],
),
),
],
),
Expand Down

0 comments on commit f08ddcf

Please sign in to comment.