Skip to content

Commit

Permalink
fix: add max line limit for title and description
Browse files Browse the repository at this point in the history
  • Loading branch information
payam-zahedi committed Sep 21, 2024
1 parent 977656c commit 36156cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/src/core/toastification_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ class ToastificationManager {
alignment: alignment,
child: Container(
margin: _marginBuilder(context, alignment, config),
color: Colors.black38,
constraints: BoxConstraints.tightFor(
width: config.itemWidth,
),
Expand Down
2 changes: 2 additions & 0 deletions lib/src/widget/built_in/built_in.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class BuiltInContent extends StatelessWidget {
style: style.titleTextStyle(context)?.copyWith(
color: foregroundColor,
),
maxLines: 1,
child: title ?? const SizedBox(),
);

Expand All @@ -106,6 +107,7 @@ class BuiltInContent extends StatelessWidget {
style: style.descriptionTextStyle(context)?.copyWith(
color: foregroundColor,
),
maxLines: 2,
child: description!,
),
],
Expand Down

0 comments on commit 36156cc

Please sign in to comment.