upgraded pub packages

This commit is contained in:
Kima
2024-02-24 23:19:37 +01:00
parent ae1f3f9389
commit 25bec328fa
34 changed files with 291 additions and 194 deletions

View File

@@ -45,12 +45,16 @@ class NewsView extends StatelessWidget {
options:
const LinkifyOptions(looseUrl: true, removeWww: true),
onOpen: (link) {
launch(
link.url,
customTabsOption: CustomTabsOption(
showPageTitle: true,
toolbarColor:
Theme.of(context).scaffoldBackgroundColor),
launchUrl(
Uri.parse(link.url),
customTabsOptions: CustomTabsOptions(
showTitle: true,
colorSchemes: CustomTabsColorSchemes(
defaultPrams: CustomTabsColorSchemeParams(
toolbarColor: Theme.of(context)
.scaffoldBackgroundColor),
),
),
);
},
style: const TextStyle(
@@ -69,12 +73,16 @@ class NewsView extends StatelessWidget {
label: news.openLabel != ""
? news.openLabel
: "open".i18n.toUpperCase(),
onTap: () => launch(
news.link,
customTabsOption: CustomTabsOption(
showPageTitle: true,
toolbarColor:
Theme.of(context).scaffoldBackgroundColor),
onTap: () => launchUrl(
Uri.parse(news.link),
customTabsOptions: CustomTabsOptions(
showTitle: true,
colorSchemes: CustomTabsColorSchemes(
defaultPrams: CustomTabsColorSchemeParams(
toolbarColor:
Theme.of(context).scaffoldBackgroundColor),
),
),
),
),
DialogButton(