update landing description
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user