-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from emreesen27/v1.2.0
v1.2.0 is completed
- Loading branch information
Showing
12 changed files
with
197 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// Represents the current status of the dialog. | ||
enum DialogStatus { | ||
/// Dialog is currently displayed | ||
opened, | ||
|
||
/// Dialog has been closed | ||
closed, | ||
|
||
/// Dialog has completed its progress | ||
completed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
enum ProgressType { | ||
/// Indeterminate progress indicator | ||
@Deprecated( | ||
'Use indeterminate instead. This will be removed in the next major version.') | ||
normal, | ||
|
||
/// Progress indicator with value | ||
@Deprecated( | ||
'Use determinate instead. This will be removed in the next major version.') | ||
valuable, | ||
|
||
/// Shows an infinite spinning progress indicator without specific progress value | ||
indeterminate, | ||
|
||
/// Shows progress with specific value (0-100%) | ||
determinate, | ||
} | ||
|
||
extension ProgressTypeHelper on ProgressType { | ||
bool get isIndeterminate => | ||
this == ProgressType.normal || this == ProgressType.indeterminate; | ||
|
||
bool get isDeterminate => | ||
this == ProgressType.valuable || this == ProgressType.determinate; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// Determines the position of the progress value text. | ||
enum ValuePosition { | ||
/// Center aligned progress value | ||
center, | ||
|
||
/// Right aligned progress value | ||
right | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.