Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Conversation

johnwargo
Copy link

@johnwargo johnwargo commented Aug 15, 2020

If I want to make a simple progress dialog with some text, I can't do that without creating, then styling the dialog (two steps that could be one). In this change,

To fix this, I added the message property to the constructor so I can do both in a single call:

 pr = ProgressDialog(
  context,
  type: ProgressDialogType.Normal, 
  message: 'This is my message',
  isDismissible: false,
);

What's this PR do?

Makes it so you can set the message in the constructor.

If I want to make a simple progress dialog with some text, I can't do that without creating, then styling the dialog (two steps that could be one). In this change, 

To fix this, I added the `message` property to the constructor so I can do both in a single call:

```dart
 pr = ProgressDialog(
  context,
  type: ProgressDialogType.Normal, 
  message: 'This is my message',
  isDismissible: false,
);
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant