Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
imaNNeo committed Nov 13, 2023
1 parent dcb1188 commit 0aaf7ee
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions example/lib/presentation/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,21 @@ class HomePage extends StatelessWidget {
Navigator.of(context).pop();
}
},
onBannerClicked: kIsWeb || needsDrawer ? () async {
if (kIsWeb) {
final url = Uri.parse(Urls.flChartUrl);
if (await canLaunchUrl(url)) {
await launchUrl(url);
}
return;
}
if (needsDrawer) {
Navigator.of(context).pop();
return;
}
} : null,
onBannerClicked: kIsWeb || needsDrawer
? () async {
if (kIsWeb) {
final url = Uri.parse(Urls.flChartUrl);
if (await canLaunchUrl(url)) {
await launchUrl(url);
}
return;
}
if (needsDrawer) {
Navigator.of(context).pop();
return;
}
}
: null,
);
final samplesSectionWidget =
ChartSamplesPage(chartType: showingChartType);
Expand Down

0 comments on commit 0aaf7ee

Please sign in to comment.