update landing description

This commit is contained in:
Fabian Freund
2024-06-17 19:48:27 +02:00
parent fbfe01d0b3
commit 797dd177e1
2 changed files with 17 additions and 8 deletions
@@ -1,6 +1,7 @@
import 'package:bang_navigator/domain/services/app_initialization.dart';
import 'package:bang_navigator/features/search_browser/presentation/widgets/error_container.dart';
import 'package:bang_navigator/features/search_browser/presentation/widgets/landing/action.dart';
import 'package:bang_navigator/features/web_view/presentation/controllers/switch_new_tab.dart';
import 'package:bang_navigator/presentation/hooks/cached_future.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show rootBundle;
@@ -106,6 +107,13 @@ class LandingContent extends HookConsumerWidget {
),
Markdown(
data: descriptionAsset.data ?? '',
onTapLink: (text, href, title) async {
if (href != null) {
await ref
.read(switchNewTabControllerProvider.notifier)
.add(Uri.parse(href));
}
},
selectable: true,
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),