Skip to content

Commit

Permalink
pr comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
rachana-egov committed Oct 27, 2023
1 parent 5ede3d0 commit 4e23283
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/digit_components/lib/widgets/digit_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ class DigitDialog extends StatelessWidget {
actions: <Widget>[
if (options.enableRecordPast == true)
Padding(
padding: const EdgeInsets.all(0),
padding: const EdgeInsets.all(8.0),
child: Row(
children: <Widget>[
if (options.secondaryAction != null)
SizedBox(
width: 50,
width: MediaQuery.of(context).size.width / 3,
child: DigitOutLineButton(
onPressed: () =>
options.secondaryAction!.action?.call(context),
Expand Down Expand Up @@ -94,7 +94,9 @@ class DigitDialog extends StatelessWidget {
children: <Widget>[
if (options.primaryAction != null)
Padding(
padding: const EdgeInsets.all(0),
padding: options.dialogPadding != null
? options.dialogPadding!
: const EdgeInsets.all(0),
child: DigitElevatedButton(
onPressed: () =>
options.primaryAction!.action?.call(context),
Expand Down

0 comments on commit 4e23283

Please sign in to comment.