Skip to content

Commit

Permalink
#108 仕事詳細画面のリンクをWebLinkウィジェットに置き換え
Browse files Browse the repository at this point in the history
  • Loading branch information
RikitoNoto committed Aug 7, 2023
1 parent 5e786a9 commit 660f5cd
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions packages/mottai_flutter_app/lib/job/ui/job_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,22 @@ class _JobDetail extends ConsumerWidget {
titleStyle: Theme.of(context).textTheme.headlineMedium,
sectionPadding: const EdgeInsets.only(bottom: 32),
content: Column(
//TODO: リンクウィジェットにする。
crossAxisAlignment: CrossAxisAlignment.start,
children: readHost.urls
.map(
(url) => Text(
url,
style: Theme.of(context).textTheme.bodyLarge,
(url) => WebLink(
urlText: url,
mode: LaunchMode.externalApplication,
linkStyle: Theme.of(context)
.textTheme
.bodyLarge
?.copyWith(
color: Colors.blue,
decoration: TextDecoration.underline,
decorationColor: Colors.blue,
),
textStyle: Theme.of(context).textTheme.bodyLarge,
maxLines: 1,
),
)
.toList(),
Expand Down

0 comments on commit 660f5cd

Please sign in to comment.