From 5e786a9668ff57ba216e9037922f5a9ca9d439a7 Mon Sep 17 00:00:00 2001 From: RikitoNoto <56541594+RikitoNoto@users.noreply.github.com> Date: Mon, 7 Aug 2023 22:35:42 +0900 Subject: [PATCH] =?UTF-8?q?#108=20web=20link=E3=82=A6=E3=82=A3=E3=82=B8?= =?UTF-8?q?=E3=82=A7=E3=83=83=E3=83=88=E3=81=AB=E6=9C=80=E5=A4=A7=E8=A1=8C?= =?UTF-8?q?=E6=95=B0=E3=81=AE=E3=83=91=E3=83=A9=E3=83=A1=E3=83=BC=E3=82=BF?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/dart_flutter_common/lib/src/widgets/web_link.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/dart_flutter_common/lib/src/widgets/web_link.dart b/packages/dart_flutter_common/lib/src/widgets/web_link.dart index 2a18ada5..0c655d81 100644 --- a/packages/dart_flutter_common/lib/src/widgets/web_link.dart +++ b/packages/dart_flutter_common/lib/src/widgets/web_link.dart @@ -17,6 +17,7 @@ class WebLink extends StatelessWidget { this.textStyle, this.linkStyle, this.onFailLaunch, + this.maxLines, super.key, }); @@ -34,6 +35,9 @@ class WebLink extends StatelessWidget { /// [urlText]のurl部分のスタイル final TextStyle? linkStyle; + /// urlの表示最大行数 + final int? maxLines; + /// リンク遷移が失敗した場合のコールバック final void Function(String url)? onFailLaunch; @@ -48,6 +52,7 @@ class WebLink extends StatelessWidget { onFailLaunch?.call(link.url); } }, + maxLines: maxLines, text: urlText, style: textStyle, linkStyle: linkStyle,