Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
c3k4ah committed Apr 29, 2024
1 parent df1eff6 commit 8325e72
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/pages/home/parts/widgets/my_awards_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,22 @@ class MyAwardsCarSwipeWidget extends StatelessWidget {
hoverColor: Colors.transparent,
splashColor: Colors.transparent,
onPressed: () async {
if (!await launchUrl(Uri.parse(palmares.urlImage))) {
if (!await launchUrl(Uri.parse(palmares.urlPost))) {
throw Exception('Could not launch');
}
},
color: themeColor.primaryColor,
elevation: 0,
padding: EdgeInsets.zero,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
child: Icon(
UniconsLine.link,
color: themeColor.whiteColor,
size: 25,
child: Center(
child: Icon(
UniconsLine.link,
color: themeColor.whiteColor,
size: 25,
),
),
),
)
Expand Down

0 comments on commit 8325e72

Please sign in to comment.