-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
32 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
class BadgePosition { | ||
final double top; | ||
final double end; | ||
final double bottom; | ||
final double start; | ||
final double? top; | ||
final double? end; | ||
final double? bottom; | ||
final double? start; | ||
|
||
const BadgePosition({this.top, this.end, this.bottom, this.start}); | ||
|
||
factory BadgePosition.topStart({double top, double start}) { | ||
factory BadgePosition.topStart({double? top, double? start}) { | ||
return BadgePosition(top: top ?? -5, start: start ?? -10); | ||
} | ||
|
||
factory BadgePosition.topEnd({double top, double end}) { | ||
factory BadgePosition.topEnd({double? top, double? end}) { | ||
return BadgePosition(top: top ?? -8, end: end ?? -10); | ||
} | ||
|
||
factory BadgePosition.bottomEnd({double bottom, double end}) { | ||
factory BadgePosition.bottomEnd({double? bottom, double? end}) { | ||
return BadgePosition(bottom: bottom ?? -8, end: end ?? -10); | ||
} | ||
|
||
factory BadgePosition.bottomStart({double bottom, double start}) { | ||
factory BadgePosition.bottomStart({double? bottom, double? start}) { | ||
return BadgePosition(bottom: bottom ?? -8, start: start ?? -10); | ||
} | ||
} |
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