ads api working

This commit is contained in:
Kima
2023-09-05 21:08:06 +02:00
parent b6eb65814f
commit 2cba1ec286
5 changed files with 35 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import 'package:filcnaplo/models/ad.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'ad_tile.dart';
@@ -12,7 +13,10 @@ class AdViewable extends StatelessWidget {
Widget build(BuildContext context) {
return AdTile(
ad,
onTap: () => [],
onTap: () => launchUrl(
ad.launchUrl,
mode: LaunchMode.externalApplication,
),
);
}
}