Skip to content

Commit

Permalink
feat: [DX-1035] Update dialog layout (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash authored Jan 23, 2024
1 parent e0a9d91 commit c3246f7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions optimus/lib/src/dialogs/dialog_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ class DialogContent extends StatelessWidget {

final ContentWrapperBuilder? contentWrapperBuilder;

Widget _divider(OptimusThemeData theme) =>
Divider(height: 1, color: theme.colors.neutral50);

@override
Widget build(BuildContext context) {
final theme = OptimusTheme.of(context);
Expand Down Expand Up @@ -69,15 +66,13 @@ class DialogContent extends StatelessWidget {
ModalRoute.of(context)?.barrierDismissible ??
true,
),
if (title != null && content != null) _divider(theme),
if (content != null)
OptimusParagraph(
child: _Content(
content: content,
contentWrapperBuilder: contentWrapperBuilder,
),
),
if (actions.isNotEmpty) _divider(theme),
if (actions.isNotEmpty)
_Actions(
actions: actions,
Expand Down

0 comments on commit c3246f7

Please sign in to comment.